LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-25-2014, 08:17 PM   #1
bmarley83
Member
 
Registered: Apr 2013
Location: Pennsylvania
Distribution: Slackware, Debian
Posts: 185

Rep: Reputation: 32
Best practices for sbopkg


Hi everybody, back with another noob question . Is it okay to overwrite dependencies and packages that are already installed over and over again without repercussions with sbopkg or is there a way to implement the command "upgradepkg --install-new" into the process if necessary?
 
Old 02-25-2014, 08:20 PM   #2
moisespedro
Senior Member
 
Registered: Nov 2013
Location: Brazil
Distribution: Slackware
Posts: 1,223

Rep: Reputation: 195Reputation: 195
I am not really about what you've asked and about the answer but I think there is no problem
 
Old 02-25-2014, 08:29 PM   #3
bmarley83
Member
 
Registered: Apr 2013
Location: Pennsylvania
Distribution: Slackware, Debian
Posts: 185

Original Poster
Rep: Reputation: 32
I mean for instance, lets say I install wine through sbopkg using sqg to handle the queuing automatically, but then later I install something through sbopkg that has wine as a dependency and it re-installs it over again, could this potentially break an installed package or something?

Last edited by bmarley83; 02-25-2014 at 08:32 PM.
 
Old 02-25-2014, 08:39 PM   #4
moisespedro
Senior Member
 
Registered: Nov 2013
Location: Brazil
Distribution: Slackware
Posts: 1,223

Rep: Reputation: 195Reputation: 195
I don't think so. Why would that happen?
 
Old 02-25-2014, 08:49 PM   #5
bmarley83
Member
 
Registered: Apr 2013
Location: Pennsylvania
Distribution: Slackware, Debian
Posts: 185

Original Poster
Rep: Reputation: 32
Well like I said "another noob question" but I was thinking perhaps a config file or such things might be overwritten. But thanks for the answer.

Last edited by bmarley83; 02-25-2014 at 08:58 PM.
 
Old 02-26-2014, 12:23 AM   #6
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,284

Rep: Reputation: Disabled
I don't think that sbopkg can cause dependencies problem per se, as it just helps you automate some process you could otherwise perform manually.

But a problem could occur if a package built using a slackbuild provided @ slackbuids.org would replace, say, a shared library shipped in a genuine Slackware package with another version, if for instance that version is not compatible (as a dependency) with another program, and that's possibly one of the reasons admins @ slackbuilds.org usually don't accept to ship other versions of software already included in Slackware.

This is due to the way installpkg and upgradepkg work: they just install what's in the package but don't check if that overwrites a file already installed (but before removing a file instead, the Slackware tools do check that it be not included in another installed package).

Some big software (glibc comes to mind) are, for practical reasons, split in several packages that can include the same file, but that doesn't hurt as long as the duplicated file is identical in all packages that ship it.

Instead, aaa_elflib gathers some older versions of libraries also shipped in other packages, just to minimize dependencies. That doesn't hurt as long it is always installed first, so the newer version will overwrite the older one, not the other way round. That's also why you're advised to never reinstall it, as that would replace newer versions by older ones.

Last edited by Didier Spaier; 02-26-2014 at 03:22 AM.
 
1 members found this post helpful.
Old 02-26-2014, 01:24 AM   #7
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,377

Rep: Reputation: 4352Reputation: 4352Reputation: 4352Reputation: 4352Reputation: 4352Reputation: 4352Reputation: 4352Reputation: 4352Reputation: 4352Reputation: 4352Reputation: 4352
if you don't *need* to rebuild something that you have already built through sbopkg, when you launch it again you can pass it the option -k that makes it skip the already built stuff that it founds in the new queue.

Last edited by ponce; 02-26-2014 at 01:25 AM.
 
2 members found this post helpful.
Old 02-26-2014, 03:12 AM   #8
bmarley83
Member
 
Registered: Apr 2013
Location: Pennsylvania
Distribution: Slackware, Debian
Posts: 185

Original Poster
Rep: Reputation: 32
Thank you Didier and Ponce. Ponce that command is so handy I can't belive I missed it in the --help and Didier thank you for clarifying, I feel much more comfortable using sbopkg now after reading responses from such qualified individuals. No offense moisespedro :P

Last edited by bmarley83; 02-26-2014 at 03:14 AM.
 
Old 02-26-2014, 03:52 AM   #9
solarfields
Senior Member
 
Registered: Feb 2006
Location: Outer Shpongolia
Distribution: Slackware, CRUX
Posts: 1,501

Rep: Reputation: 1048Reputation: 1048Reputation: 1048Reputation: 1048Reputation: 1048Reputation: 1048Reputation: 1048Reputation: 1048
bmarley83

when you load the build queue for the second thing that you want to install, just click deselect installed
 
1 members found this post helpful.
Old 02-26-2014, 04:12 AM   #10
bmarley83
Member
 
Registered: Apr 2013
Location: Pennsylvania
Distribution: Slackware, Debian
Posts: 185

Original Poster
Rep: Reputation: 32
solarfields, that's a good point I guess I could just do that. I wasn't aware that it listed packages already installed within the interface like that, as I was only using command line. I'm gonna check it out, thanks.
 
Old 02-26-2014, 04:54 AM   #11
55020
Senior Member
 
Registered: Sep 2009
Location: Yorks. W.R. 167397
Distribution: Slackware
Posts: 1,307
Blog Entries: 4

Rep: Reputation: Disabled
I think you were also worried about config files? That is a good question. When you upgrade or remove a package, it leaves most of the stuff in /etc, and when you install a new package, it generally won't overwrite anything in /etc that already exists. This is why you have the .new files that appear in /etc after you upgrade a package, and this is why you often still have junk in /etc after you remove a package. This is a minor pain, but necessary to avoid losing any local config. The clever stuff is in the doinst.sh that comes with the SlackBuild.

Having said that, it is possible for a bad package to break these rules when it shouldn't... and for a good package to break these rules when it should
 
1 members found this post helpful.
Old 02-26-2014, 05:12 AM   #12
solarfields
Senior Member
 
Registered: Feb 2006
Location: Outer Shpongolia
Distribution: Slackware, CRUX
Posts: 1,501

Rep: Reputation: 1048Reputation: 1048Reputation: 1048Reputation: 1048Reputation: 1048Reputation: 1048Reputation: 1048Reputation: 1048
bmarley83,

the interface is very nice with the same look and feel as pkgtool
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Sbopkg for 14.1 is available hitest Slackware 5 12-13-2013 09:43 AM
[SOLVED] Sbopkg in 14.1 arubin Slackware 3 12-01-2013 01:53 AM
[SOLVED] sbopkg 14.0 --> 14.1? JWJones Slackware 4 11-10-2013 04:22 PM
sbopkg help rng Slackware 6 03-16-2012 10:32 AM
Sbopkg... Alexvader Slackware 24 11-23-2009 12:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:32 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration