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.
Distribution: Red Hat, openBSD,Mandrake,freeBSD,SunOS
Posts: 168
Rep:
Uninstalling Programs
Hey,
I am using redhat 9 and I want to know how to uninstall programs that were installed from source. I know how to uninstall programs install through rpm but not source. Also, if I have a program called program-v1 and then they release a new version, say program-v2. Do I just install the new version and it will override the old version? Or do I have to uninstall the old version before I install the new? Which brings me to my first question.....how do you uninstall programs installed from source?
In general, the "make install" element of a package just dumps a bunch of files in their appropriate places. Most packages featuring "make install" also feature "make uninstall". If you have the Makefile that you created (using ./configure?) originally, then there's that, or otherwise you find the source tarball and run ./configure with the same options (or lack of) that you did last time and do a "make uninstall" with that.
If the package /doesn't/ feature a "make uninstall", then your only recourse is to have a look in the Makefile to see where it installed everything and rip it out manually. After this, be sure to complain to the maintainer!
All this ain't pretty. That's why it's so good to use packages ;-)
Usually it will override the old version of your program, but it is better for you to uninstall the old version first.
You can uninstall the program ( source not rpm ) by going to their directory and type make uninstall, usually it came with make uninstall, So if doesn't came with make uninstall, you will need to do it manually and after that do a complaint to maintener
"I want to know how to uninstall programs that were installed from source."
I bypass the whole problem by converting source tarballs to rpms and then install the rpm. It make keeping track of your packages and uninstalling them easier.
The program that I use to convert tarballs to rpms is checkinstall:
Distribution: Red Hat, openBSD,Mandrake,freeBSD,SunOS
Posts: 168
Original Poster
Rep:
Quote:
The program that I use to convert tarballs to rpms is checkinstall:
I belong to a listserver for xfce4 and I just, and I mean seconds ago, finished readding an email from this server where people were talking about checkinstall! This sounds like a great function and I am definately going to use it for now on! Thanks for your help.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.