Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
02-25-2014, 08:17 PM
|
#1
|
Member
Registered: Apr 2013
Location: Pennsylvania
Distribution: Slackware, Debian
Posts: 185
Rep:
|
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?
|
|
|
02-25-2014, 08:20 PM
|
#2
|
Senior Member
Registered: Nov 2013
Location: Brazil
Distribution: Slackware
Posts: 1,223
Rep:
|
I am not really about what you've asked and about the answer but I think there is no problem
|
|
|
02-25-2014, 08:29 PM
|
#3
|
Member
Registered: Apr 2013
Location: Pennsylvania
Distribution: Slackware, Debian
Posts: 185
Original Poster
Rep:
|
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.
|
|
|
02-25-2014, 08:39 PM
|
#4
|
Senior Member
Registered: Nov 2013
Location: Brazil
Distribution: Slackware
Posts: 1,223
Rep:
|
I don't think so. Why would that happen?
|
|
|
02-25-2014, 08:49 PM
|
#5
|
Member
Registered: Apr 2013
Location: Pennsylvania
Distribution: Slackware, Debian
Posts: 185
Original Poster
Rep:
|
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.
|
|
|
02-26-2014, 12:23 AM
|
#6
|
LQ Addict
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,284
Rep:
|
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.
|
02-26-2014, 01:24 AM
|
#7
|
LQ Guru
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,377
|
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.
|
02-26-2014, 03:12 AM
|
#8
|
Member
Registered: Apr 2013
Location: Pennsylvania
Distribution: Slackware, Debian
Posts: 185
Original Poster
Rep:
|
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.
|
|
|
02-26-2014, 03:52 AM
|
#9
|
Senior Member
Registered: Feb 2006
Location: Outer Shpongolia
Distribution: Slackware, CRUX
Posts: 1,501
|
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.
|
02-26-2014, 04:12 AM
|
#10
|
Member
Registered: Apr 2013
Location: Pennsylvania
Distribution: Slackware, Debian
Posts: 185
Original Poster
Rep:
|
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.
|
|
|
02-26-2014, 04:54 AM
|
#11
|
Senior Member
Registered: Sep 2009
Location: Yorks. W.R. 167397
Distribution: Slackware
Posts: 1,307
Rep:
|
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.
|
02-26-2014, 05:12 AM
|
#12
|
Senior Member
Registered: Feb 2006
Location: Outer Shpongolia
Distribution: Slackware, CRUX
Posts: 1,501
|
bmarley83,
the interface is very nice with the same look and feel as pkgtool
|
|
|
All times are GMT -5. The time now is 04:32 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|