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,