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 installed apache 2.0 via a tarball (*.tar.gz). The installation was successful. However, I would like to uninstall it now. I tried a "make uninstall" and I get a "No rule to make target 'uninstall' message. I saw other forum messages that state that some programs don't use "make uninstall". Is this the case with apache?
I also read on this forum about using checkinstall, however, since I did not use "checkinstall" to perform the installation, I am assuming that I cannot use checkinstall to uninstall. Is that a correct assumption?
I checked the makefile and I couldn't find anything about uninstalling.
How do I uninstall apache? Is it as simple as deleting the directory where it is installed (/usr/local/apache2) or will it be more complicated?
Originally posted by gitarted I installed apache 2.0 via a tarball (*.tar.gz). The installation was successful. However, I would like to uninstall it now. I tried a "make uninstall" and I get a "No rule to make target 'uninstall' message. I saw other forum messages that state that some programs don't use "make uninstall". Is this the case with apache?
I also read on this forum about using checkinstall, however, since I did not use "checkinstall" to perform the installation, I am assuming that I cannot use checkinstall to uninstall. Is that a correct assumption?
I checked the makefile and I couldn't find anything about uninstalling.
How do I uninstall apache? Is it as simple as deleting the directory where it is installed (/usr/local/apache2) or will it be more complicated?
I don't know what distribution you're using ?
But I assume that if you have download the .tar.gz file. it must be build from source ....right?
Actually there's not a clean un-install for source tarballs. In the dir where you have extracted the tar ball, the binary's are builded which is done by make. After all finally make install will copy all file to the correct path on your linux distro.
I've done this in the past:
Delete the dir with the source, search all binarys and configs in /etc/ and delete them manually. Distro's like RedHat, Slackware, Gentoo all have some kind of package manager. In this cause, if you would like to build something allways from scratch (code) then RedHat and Gentoo are the most organized. Of cource there'r more distro's which I didn't mention, but do have also a good package management.
CheckInstall:
As far as I know It's just before the install actually is done, this will check some things like path, files, etc. Not used for uninstall.
One thing to consider for future tarball installs is using checkinstall. After you install this, you can now make binary packages for your distro (.rpm, .deb, .tgz) that you can uninstall easily. It also saves the binary package so you can install it an another system without having to compile the source again. Good luck.
To uninstall a compiled version, you remove the entire folder where apache binaries files reside (like httpd), www, or apache2 with the command "rm -rf " (carefully this command will remove all without warning).
Then clear the compiled files in the folder where you have the source files with the command "make clean" and you could make a new install.
sorry if this sounds dum but where would the -folder where apache binaries files reside - be by default for redhat 9 ?
Quote:
Originally posted by ruiseixas To uninstall a compiled version, you remove the entire folder where apache binaries files reside (like httpd), www, or apache2 with the command "rm -rf " (carefully this command will remove all without warning).
Then clear the compiled files in the folder where you have the source files with the command "make clean" and you could make a new 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.