Add an article: O (∩ _ ∩) O ~
The uninstall procedure is as follows:
Uninstall Mysql
[Root @ localhost ~] # Rpm-qa | grep mysql
Mod_auth_mysql-2.6.1-2.2
Php-mysql-4.3.9-3.15
Mysql-devel-4.1.20-1.RHEL4.1
Mysql-4.1.20-1.RHEL4.1
Mysqlclient10-3.23.58-4.RHEL4.1
Libdbi-dbd-mysql-0.6.5-10.RHEL4.1
Note: The rpm-qa | grep mysql command is used to list mysql-related packages. In the preceding example, the rpm package list of mysql is installed in Linux AS4 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 unload the libdbi-dbd-mysql-0.6.5-10.RHEL4.1 as follows: rpm-e-dbd-mysql-0.6.5-10.RHEL4.1
(Rpm-e is the command to uninstall the rpm package, followed by the package name, the last version number is not to be played, for example, we next to uninstall the mysqlclient10-3.23.58-4.RHEL4.1 package, the method is as follows:
Rpm-e mysqlclient
Uninstall Apache
[Root @ localhost ~] # Rpm-Qa | grep httpd
Httpd-manual-2.0.52-25.ent
System-config-httpd-1.3.1-1
Httpd-2.0.52-25.ent
Httpd-suexec-2.0.52-25.ent
Note: The method is the same as to uninstall MySQL.
Uninstall PHP
[Root @ localhost ~] # Rpm-Qa | grep PHP
Php-odbc-4.3.9-3.15
Php-4.3.9-3.15
Php-mysql-4.3.9-3.15
Php-pear-4.3.9-3.15
Php-ldap-4.3.9-3.15
Php-pgsql-4.3.9-3.15
Note: The method is the same as to uninstall MySQL.
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 really a package that can not be uninstalled, you can add-nodeps this parameter to uninstall, for example, we unload the php-4.3.9-3.15, it can not be removed.
Use:
[Root @ localhost ~] # Rpm-e php-4.3.9-3.15 -- nodeps
Address: http://linux.chinaitlab.com/administer/742015.html