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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
02-21-2009, 03:23 AM
|
#1
|
|
Member
Registered: Jun 2006
Location: Italy
Distribution: Slackware 13.1
Posts: 213
Rep:
|
Slackware package upgrades
Hello!
Today I've had a look at the Slackware security advisories, and decided to upgrade libpng and git.
My doubt is, should I install the new package without removing the old one, or should I remove the old one first?
For example, I've installed the new libpng, now I have both libpng-1.2.27 and 1.2.35.
I'm not sure if I should uninstall the old version, since some programs might be using its shared library. On the other hand, should I worry about disk space usage by old packages?
Thanks!
|
|
|
|
02-21-2009, 03:25 AM
|
#2
|
|
Guru
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,594
|
You should use 'upgradepkg' to upgrade packages.
|
|
|
|
02-21-2009, 03:50 AM
|
#3
|
|
Senior Member
Registered: Nov 2008
Location: Paris, France
Distribution: Slackware-14.0 on a Lenovo T61 6457-4XG
Posts: 2,781
|
I would not keep old versions.
If you keep it, you stay at risk.
About shared libraries, there should be no problem for applications coming in official Slackware packages as well as applications compiled using a "good" SlackBuild as those provided @slackbuilds.org.
So I would use 'upgradpkg', as stated by 'H_TeXMeX_H'.
If you have already installed two different versions, I would 'removepkg' both, then 'installpkg' or 'upgradepkg --install-new -reinstall' the last one.
Last edited by Didier Spaier; 02-21-2009 at 03:52 AM.
|
|
|
|
02-21-2009, 05:45 AM
|
#4
|
|
LQ 5k Club
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Laptop: Slackware 14.0 // Desktop: Slackware64 14.0 // Netbook: Slackware 14.0
Posts: 6,176
|
Use slackpkg. Uncomment your nearest mirror in /etc/slackpkg/mirrors, then run as root:
Code:
slackpkg update
slackpkg upgrade-all
This will remove the old, and install the new.
|
|
|
|
02-22-2009, 03:15 AM
|
#5
|
|
Member
Registered: Jun 2006
Location: Italy
Distribution: Slackware 13.1
Posts: 213
Original Poster
Rep:
|
Thanks to everyone.
Actually, I rarely use precompiled packages, I usually compile libraries and application from source. This is why I'm afraid that some compiled stuff might still depend on the old version of the library. However, I realize that keeping the old libraries makes the upgrade useless...
Hmm...
Edit: anyway, for git, I think there should be no problem if I overwrite the existing installation (maybe I could have trouble if I used GUI for git, but I don't).
Last edited by simopal6; 02-22-2009 at 03:17 AM.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 09:30 AM.
|
|
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
|
|