This Howtos posted under: Apache | Total Visitors Till Now: 837

How to uninstall Apache

OPTION 1: Run this command if you installed apache with RPM or throug the automatic option during the Fedora/Red Hat OS installation.

Code:

yum remove httpd

OPTION 2: Run
Code:

/etc/init.d/httpd stop

to get the package name. It should come back with something like this:
Code:

apachecfg-0.3.1-6
apache-1.2.5-1

You can then use this command to remove Apache:

Code:

rpm -e apache-1.2.5-1

OPTION 3. If you compiled apache on your own. If you did a manual install then just delete

/usr/local/apache (or wherever it is installed).

OPTION 4. f you are doing it manually then to remove Apache from your Linux server, enter this line at the Linux command prompt:
Code:

rm -rf /usr/local/apache2

OPTION 5: To find files by name try “locate”; it will force you to run updatedb the first time.

To find packages that are installed try
rpm -qa *apache* *mysql*

{ note “rpm -qa” lists all installed packages }

Code:

[root@foo ~]# rpm -qa *apache* *mysql*
ant-apache-resolver-1.6.5-2jpp.2
koffice-kexi-driver-mysql-1.6.1-4.fc6
mysql-server-5.0.27-1.fc6
ant-apache-log4j-1.6.5-2jpp.2
mysql-bench-5.0.27-1.fc6
mysql-connector-odbc-3.51.12-2.2
apachetop-0.12.6-2.fc6
ant-apache-oro-1.6.5-2jpp.2
ant-apache-regexp-1.6.5-2jpp.2
mod_auth_mysql-3.0.0-3.1
libdbi-dbd-mysql-0.8.1a-1.2.2
mysql-5.0.27-1.fc6
php-mysql-5.1.6-3.3.fc6
ruby-mysql-2.7.1-2.fc6
ant-apache-bcel-1.6.5-2jpp.2
mysql-devel-5.0.27-1.fc6

To see what files are in a specifig package
Code:

[root@foo ~]# rpm -ql ant-apache-bcel
/etc/ant.d/apache-bcel
/usr/lib/gcj/ant
/usr/lib/gcj/ant/ant-apache-bcel-1.6.5.jar.db
/usr/lib/gcj/ant/ant-apache-bcel-1.6.5.jar.so
/usr/share/java/ant/ant-apache-bcel-1.6.5.jar
/usr/share/java/ant/ant-apache-bcel.jar
/usr/share/java/ant/ant-jakarta-bcel.jar
Coolsearchinfo - A free Social Bookmarking Site

Liked this article? To continue getting our latest free Howtos and Tutorials,
you can also grab the RSS feed or Subscribe to Techgurulive by Email

Not Getting



Related posts
  • Installing Apache on Linux – RPM Installation
    You can handle RPM installation with a single command. However, you should follow a few guidelines within the context of RPMs. Before you begin downloading the RPM, ensure the following:...
  • The –prefix=/usr/local/apache Argument
    You use this argument to specify the path where Apache should be installed on the file system. In this case, the path is specified as /usr/local/apache. This is the default...