Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 12-22-2003, 11:51 PM   #1
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,

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

Rep: Reputation: 60
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, 12:45 AM   #3
LQ 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, 08:00 AM   #4
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.


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

All times are GMT -5. The time now is 10:59 AM.

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
Open Source Consulting | Domain Registration