LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 09-11-2003, 04:09 AM   #1
gitarted
LQ Newbie
 
Registered: Sep 2003
Location: Hawaii
Distribution: Mandrake 9.1 (currently), RedHat 9, SuSE 8.2
Posts: 10

Rep: Reputation: 0
Uninstalling Apache?


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?
 
Old 09-11-2003, 05:35 AM   #2
daveo
Member
 
Registered: Sep 2003
Location: Holland
Distribution: Gentoo 1.4, Slackware
Posts: 196

Rep: Reputation: 30
Re: Uninstalling Apache?

Quote:
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.

Hope this helps
 
Old 09-11-2003, 02:50 PM   #3
gitarted
LQ Newbie
 
Registered: Sep 2003
Location: Hawaii
Distribution: Mandrake 9.1 (currently), RedHat 9, SuSE 8.2
Posts: 10

Original Poster
Rep: Reputation: 0
Thanks,

I am using RedHat 9. Looks like the uninstall process will be sort of difficult considering I did not use an rpm.

I will do as you suggested an look for all the binaries and config and remove them.

I think using checkinstall during installation is a wiser choice.
 
Old 09-11-2003, 03:49 PM   #4
Tez218
Member
 
Registered: Jun 2003
Distribution: Slackware 9.1, UnitedLinux 1.0
Posts: 42

Rep: Reputation: 15
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.
 
Old 09-27-2003, 08:43 PM   #5
ruiseixas
LQ Newbie
 
Registered: Jul 2003
Location: Portugal
Distribution: redhat 9
Posts: 17

Rep: Reputation: 0
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.

./configure \
"--with-layout=Apache" \
"--enable-mods-shared=most" \
... (more options)

make

make install
 
Old 01-03-2004, 09:56 AM   #6
mughrabi
LQ Newbie
 
Registered: Jan 2004
Posts: 1

Rep: Reputation: 0
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.

./configure \
"--with-layout=Apache" \
"--enable-mods-shared=most" \
... (more options)

make

make install
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Uninstalling Apache Verbal Kint Linux - Software 5 09-18-2005 09:31 PM
Uninstalling Apache, PhP and MySQL issey Linux - Newbie 2 03-24-2005 08:58 AM
Uninstalling Apache Khang Linux - Software 2 11-03-2004 11:25 AM
Uninstalling Compiled Apache tackytwo Linux - Software 1 08-30-2003 01:34 PM
uninstalling apache p0 theed Linux - Software 10 08-04-2003 09:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:27 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration