First, disable the httpd service.
/Etc/init. d/httpd stop
List httpd related packages
Rpm-qa | grep httpd
The package list is as follows:
Httpd-2.2.3-63.el5.centos.1
Httpd-manual-2.2.3-63.el5.centos.1
Uninstall package
Rpm e httpd-manual-2.2.3-63.el5.centos.1
Rpm e system-config-httpd-1.3.3.3-1.el5
This completes the uninstallation.
Uninstall Apache
1. # rpm-qa | grep httpd. Check the software packages related to httpd.
"Httpd-2.2.3-11.el5_2.centos.4
"
2. Delete httpd:
"# Rpm-e httpd
"
Problem:
"Error: Failed dependencies:
Httpd> = 2.2.0 is needed by (installed) gnome-user-share-0.10-6.el5.i386
"
3. If a related software package is not deleted, clear it, that is:
"# Rpm-e gnome-user-share
"
4. Delete httpd again.
"# Rpm-e httpd
"
# The parameter nodeps can be used regardless of the dependency between packages.
"# Rpm-e-nodeps httpd // You do not need to delete gnome-user-share.