First turn off the httpd service
 
/ETC/INIT.D/HTTPD stop
 
List HTTPD Related packages
 
Rpm-qa|grep httpd
 
The following packages are listed
 
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
 
So the uninstall is complete.
 
Uninstall self-with Apache
 
1, # Rpm-qa|grep httpd, view and httpd related packages.
 
"Httpd-2.2.3-11.el5_2.centos.4
 
"
 
2, and then delete the httpd:
 
"# RPM-E HTTPD
 
"
 
Problem occurs:
 
"Error:failed dependencies:
 
httpd >= 2.2.0 is needed by (installed) gnome-user-share-0.10-6.el5.i386
 
"
 
3, there is also a related package did not delete, clear, namely:
 
"#rpm-e Gnome-user-share
 
"
 
4, and then delete httpd
 
"# RPM-E HTTPD
 
"
 
#可以使用参数 –nodeps means that regardless of the dependencies between the packages.
 
"#rpm-e–nodeps httpd//This does not need to delete the Gnome-user-share