Linux - NewbieThis 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
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.
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.