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.
Is there an easy or automatic way to uninstall a program you compiled from source?
I always want to uninstall a program before reinstalling it, but I dont feel like finding and deleting every directory. Thats the one thing I like about packages, easy to uninstall.
These days most source-tarballs will
also implement a "make uninstall", which
of course means that you're not supposed
to kill your source-directory after an install :}
Also, there's a few packages out there
that will allow you to keep track of installations,
do a search on the site (since I can't remember
the names of those) ;)
Some tarballs come with a make command to uninstall themselves, most do not. I
solved this problem by using checkinstall to create RPM packages from tarballs.
You do the compile as normal. Instead of issuing make install you issue
checkinstall. checkinstall does the make install command for you. It also
creates and installs a RPM package. If you want to uninstall the package you
can do so with rpm. You can find checkinstall at:
Do you think if I creat an rpm using checkinstall and then install it and uninstall it I can remove already installed software? If I can do I need to have any flags forcing the replacement of files?
Yes, I have used checkinstall to uninstall software originally installed with make install using the method you describe. I don't think that forcing the install is necessary. When you do an rpm -e it will remove whatever is there.
I had a similar question, but decided to check out this thread first. I recommend RPMs, but "make uninstall" works just find if the source directories are not deleted. However, I don't know about how to uninstall stuff if the source were deleted.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.