Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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 update software that I compiled from source? Do I have to uninstall it (and if so, how do I do that?), or do I just compile the newer source and make install will overwrite the previous version?
well first you need to STILL have the original source code saved in say
/usr/src
example: mine for gimp
/usr/src/gimp-2.4.6
Code:
su - ( or sudo)
cd /usr/src/gimp-2.4.6
make uninstall
cd ../gimp-2.4.7
exit
./configure --prefix=/usr --with-desktop-dir=/usr/share/applications
make
su -
make install
cd ../
rm -R gimp-2.4.6
'make install' will not necessarily overwrite already installed files. Read README/INSTALL in source directory of both versions.
To uninstall you might be able to run 'make uninstall' in source directory of the old version (if Makefile provides for this - many packages do not provide for 'make uninstall' - in this case you'll just have to delete installed files by hand).
If the package uses GNU autotools, youll need to have the source configured exactly as you configured it for the install. That is, you either keep the source tree or remember the configure options you passed so you can re-create the Makefile. When the package comes with a Makefile hope it has an uninstall target.
If you plan to install a grunch 'o' packages from source, I recommend you use an app to keep track of what gets installed. Something like paco or installwatch. It will ease package removal. If you only plan to install a handful of packages from source, install them in your $HOME instead of system-wide.
or if you have more than one install of the same program .For example I have the Celestia 1.5.1 installed system wide and the svn build in it's own directory /usr/opt/Celestia_svn .The same gor gimp and gimp svn ( gnome tree)
and if you did not add any tags to configure( or use the same tags) and do not have the old code still on the machine or you ran " make distclean " on the old code .Then make install on the NEW code " should ??"
over wright the old install .
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.