Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 02-21-2009, 03:23 AM   #1
Registered: Jun 2006
Location: Italy
Distribution: Slackware 13.1
Posts: 218

Rep: Reputation: 30
Slackware package upgrades

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?
Old 02-21-2009, 03:25 AM   #2
LQ Guru
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1287Reputation: 1287Reputation: 1287Reputation: 1287Reputation: 1287Reputation: 1287Reputation: 1287Reputation: 1287Reputation: 1287
You should use 'upgradepkg' to upgrade packages.
Old 02-21-2009, 03:50 AM   #3
Didier Spaier
LQ Addict
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-14.2 on Lenovo Thinkpad W520
Posts: 7,431

Rep: Reputation: 2396Reputation: 2396Reputation: 2396Reputation: 2396Reputation: 2396Reputation: 2396Reputation: 2396Reputation: 2396Reputation: 2396Reputation: 2396Reputation: 2396
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

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.
Old 02-21-2009, 05:45 AM   #4
LQ 5k Club
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware & Slackware64 14.1
Posts: 7,453
Blog Entries: 55

Rep: Reputation: Disabled
Use slackpkg. Uncomment your nearest mirror in /etc/slackpkg/mirrors, then run as root:
slackpkg update
slackpkg upgrade-all
This will remove the old, and install the new.
Old 02-22-2009, 03:15 AM   #5
Registered: Jun 2006
Location: Italy
Distribution: Slackware 13.1
Posts: 218

Original Poster
Rep: Reputation: 30
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...

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
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
slackware upgrades soylentgreen Slackware - Installation 8 05-01-2005 11:52 AM
no more package upgrades? machineunreal Linux - Software 1 03-26-2005 08:51 AM
Upgrades gimp to 2.2.3 with package but now won't open jpg zwyrbla Slackware 6 01-28-2005 11:37 AM
Linux package upgrades - how? njschroe Linux - General 1 12-07-2004 08:14 PM
Can Red Hat Package Upgrades be done from Install CD? LinuxBlackBox Linux - Software 2 11-12-2003 06:30 AM

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

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