LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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
 
LinkBack Search this Thread
Old 02-21-2009, 03:23 AM   #1
simopal6
Member
 
Registered: Jun 2006
Location: Italy
Distribution: Slackware 13.1
Posts: 217

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

Rep: Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266
You should use 'upgradepkg' to upgrade packages.
 
Old 02-21-2009, 03:50 AM   #3
Didier Spaier
Senior Member
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slackware-14.0 on a Lenovo T61 6457-4XG
Posts: 3,637

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

Rep: Reputation: 1238Reputation: 1238Reputation: 1238Reputation: 1238Reputation: 1238Reputation: 1238Reputation: 1238Reputation: 1238Reputation: 1238
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.
 
Old 02-22-2009, 03:15 AM   #5
simopal6
Member
 
Registered: Jun 2006
Location: Italy
Distribution: Slackware 13.1
Posts: 217

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...
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.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are 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 05:21 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration