Uninstall Apache
[Root @ server ~] # Rpm-Qa | grep httpd
Httpd-2.2.3-11.el5_2.centos.4
Httpd-manual-2.2.3-11.el5_2.centos.4
Note:The rpm-Qa | grep MySQL command is used to list all mysql-related packages. In the preceding example, the RPM package list for installing Apache in Linux is used by default, the list listed in other Linux versions may be different, but don't worry. Whatever it is, the uninstallation starts from the bottom package until the first package is detached.
For example, in this example, we should first uninstall the httpd-manual-2.2.3-11.el5_2.centos.4 as follows:
Rpm e httpd-manual-2.2.3-11.el5_2.centos.4
The methods for uninstalling PHP and MySQL are the same as those for Apache.
Note: If the package dependency cannot be detached, the system will usually prompt the package dependency, and list the dependent package names. Uninstall the dependent package first.
If there is a package that can not be uninstalled, you can add-nodeps this parameter to uninstall, for example, we uninstall the httpd-manual-2.2.3-11.el5_2.centos.4, it can not be uninstalled. Use:
[Root @ localhost ~] # Rpm-e httpd-manual-2.2.3-11.el5_2.centos.4-nodeps