Operating Systems > Linux and UNIX

Apache

(1/2) > >>

mskarl:
Well I was reading lastnight about Apache. My default install came with Apache installed and I'm trying to figure out how to uninstall or delete it. I want to start off clean and then put a newer version on. I tried just installing the new version but seamed to have problems. Like when I try to start/stop Apache it say's command not found. But I know the apachect1 file is there because I can see it.
Can anyone give me an idea of where to delete files and what script to modify so that I can cleanly remove it? I'm new to the idea of not having to un-install and modify your reg if you really want it gone.

voidmain:
It would depend on the distribution that you are running as to how best to remove it. If you are running Mandrake or RedHat (RPM based) what I usually do is first run this command:

rpm -qa | grep apache

which will list all of the apache RPMS.  Then remove the RPMs one at a time by typing:

rpm -e apacheconf
rpm -e apache

Of course you may have some other RPMs installed that are dependent on Apache being installed in which case you will have to remove them first. It is best to remove RPMs in order of dependency so you don't screw up the dependencies, it will not remove the package if there is a dependency issue unless you force it. I recommend against forcing. You can check to see what other packages are dependent on "apache" by typing:

rpmquery --whatrequires apache

You would remove the packages that depend on apache being installed first.

But if your goal is to upgrade you do not have to uninstall apache first.  Just use the "rpm -Uvh apache*.rpm" command from within the directory that contains your new apache RPMS.

If you are not running an RPM based system just let me know what you *are* running and I'll help you with that.

P.S. don't forget to "su" to root first.

[ March 21, 2002: Message edited by: VoidMain ]

mskarl:
VoidMan,
  I'm sorry I forgot to say I'm using SuSE 7.2.  The Apache server was installed defaultly so I don't think a RPM would exist right?  I found some information on RPM's and had read a little about them before I posted this questions.  I assumed that I couldn't use the unistall function of RPM's because it was defaultly installed when I loaded SuSE right?

Calum:
while that's the case for windows and internet explorer et c, i think it's untrue for linux.
I was looking through what's on my turbolinux and red hat install cds a day or 2 ago, and all the "default" stuff is right there as rpms. all the "default" install does is run rpm, i think (am i right, folks?) so you should be able to use rpm to uninstall it? did you try to do that and fail? if so then it's beyond my limited knowledge i'm afraid [img src= a shrugging emoticon (we need one of those!)]

mskarl:
No I haven't tried to unistall it with RPM's yet.  I will when I get home tonight though.  I was just assuming that it wouildn't work so I never tried.

Navigation

[0] Message Index

[#] Next page

Go to full version