LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 12-23-2003, 12:51 AM   #1
vincebs
Member
 
Registered: Oct 2003
Location: Mississauga, ON
Distribution: Ubuntu 9.04
Posts: 494

Rep: Reputation: 30
Question Upgrading software


Hi everyone,

How do I upgrade software in Linux? In both source-based installations and RPM-based.

In source-based installations, do I have to uninstall the old version before installing the new version? If so, if I deleted the old version's source files, do I have to first download the old version's source to uninstall it, then download the new version's source to install the new version?

In RPM installations, can I simply do an rpm -U command? How will the RPM program know which RPM package to upgrade, especially if the name of the RPM package has changed either because of version number or complete name change?

For example, let's say I initially installed a program using this command:

rpm -i abc01.rpm

Do I install a new version doing this:

rpm -U abc02.rpm

?

Also, if an old version was installed as a source-based installation, can I upgrade it using rpm -U? Or do I have to uninstall the old version then use rpm -i?

Thanks a lot,

Vince
 
Old 12-23-2003, 01:12 AM   #2
fancypiper
Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 58
rpm -Uvh <packagename>.rpm will either install or upgrade the package.

Here is the best book on using rpm: Maximum RPM

# Guides to software management
LNAG - How do I install a program I downloaded from the Internet?
Rute Guide's software explanation
You might want to check out CheckInstall to manage source code installations/uninstallation
 
Old 12-23-2003, 01:45 AM   #3
Demonbane
Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
With source based installs its usually quite alright to just compile the new version and install, but that sometimes can leave garbage files from the older version, and sometimes configuration files needs to be updated as well, read the docs it usually provides useful information on upgrading.
If you're going to compile for the source often I highly recommend a source based distro like Gentoo, the portage system does all the dirty work for you, fetching/installing dependencies, apply patches, upgrade/uninstall cleanly, update configuration files, enable/disable features depending on your choice through "USE" flags, check system consistency(sometimes when there's updates to system libraries softwares which depends on it have to be recompiled) etc etc.
 
Old 12-23-2003, 09:00 AM   #4
ugob
Member
 
Registered: Nov 2003
Distribution: RH, Fedora, Debian, Knoppix
Posts: 436

Rep: Reputation: 31
I suggest you give apt a try for installing-upgrading the packages that are included in your distro. http://apt.freshrpms.net/
 
  


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
upgrading software question roller24 Linux - Newbie 2 11-06-2005 10:31 AM
Upgrading software gflores Linux - Newbie 4 03-07-2005 01:39 PM
software installation and upgrading on suse 9 foustware Linux - Software 1 04-21-2004 12:43 PM
Upgrading Software by Building new RPM's farmerdan Linux - General 2 03-28-2004 08:13 AM
upgrading and uninstalling software mijohnst Linux - Software 4 11-24-2003 01:50 AM


All times are GMT -5. The time now is 08:45 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration