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.
I have been installing lots of things from tar.gz files and just getting some much needed practice with that. However, today it occured to me that I have no clue how to correctly uninstall this sorta stuff? I have a SusE 8.2 machine and RedHat 9.0, I was wondering whats the command to do this?
Most of the time it's deleting the directory it installed to, the executable or links to it in /bin /usr/bin or some /<otherpath>/bin and it's config file somewhere in /etc.
It will give you practice in reading the configure and install files in the source code.
Last edited by fancypiper; 06-10-2003 at 07:30 PM.
Most good .tar.gz programs are installed with, finally, make install. Often you will be able to uninstall with make uninstall but you should also be familiar with make distclean. If you're lucky you will be given some advice in the INSTALL files, but don't hold your breath. If you're feeling adventurous, you could check out the Makefile and see what make xxxx options are available to you. Although you might not understand everything in there, Lord knows I don't, but it should be fairly easy to spot.
Ok, let me make sure I know what you guys are talking about here. I can go into the directory where I ran "make install" and run the make uninstall thing and that will delete everything/remove all files on the entire system? I guess I was a little lost by the previous posts, sorry my n00b is showing!
When you get a handle on Linux, Gentoo has a fine source code package manager similar to BSDs ports system. emerge <name> installs with dependency resolution, emerge unmerge <name> uninstalls (but not it's depencencies just now).
Get at ease with the command line before deciding to switch, however.
For now, I advise you to stick to your distros available packages if you have drive space limitations. If you got the room, why not try everything though?
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,302
Rep:
i've got a mild trick for that. it's kind of obvious, but you
may not have thought of it.
if you later want to delete the package and the
package has make uninstall in it, but you deleted the
source long ago, download the source, configure,
make, make install make uninstall.
downloading and compiling just to uninstall. i've done it.
Hehe! Haven't we all! Just a note to the unwary reader, however, that if you need to do this (re-download the source files just to uninstall), you will need to get the source files for the version you have installed and not the latest version. Although it might work by doing a make uninstall with the latest version, it is not recommended at all.
When you install a new package you do:
./configure
make
checkinstall
checkinstall will create a rpm for the program that you are installing.
To get rid of an old tar.gz application which was not installed using checkinstall go through the install again except this time use checkinstall. Then install the rpm using --replace. Then uninstall using rpm -e
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.