[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
Description: Rpm–qa | The grep mysql command is designed to list MySQL-related packages, and my example above is the Linux AS4 default installation
A list of MySQL's RPM packages,
If it's a list of other Linux versions it might be different, but don't worry, whatever it is, the uninstall starts at the bottom of the package until the first one is unloaded.
Description: Rpm–e is the command to uninstall the RPM package, followed by the package name, the final version number is not to play, such as our next uninstall
mysqlclient10-3.23.58-4.rhel4.1 Bag
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
Description: The method is the same as uninstalling MySQL, needless to say
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
Description: The method is the same as uninstalling MySQL
Note: If the uninstall is not removed, the CentOS system will generally prompt the package dependencies, and list the name of the dependent package, first uninstall the hint dependency of the package can be.
If there is really no unloading of the package, you can add-nodeps this parameter to uninstall, such as we uninstall php-4.3.9-3.15, really unloaded.
Just use:
[Root@localhost ~]# rpm-e php-4.3.9-3.15–nodeps
If it's not in front of you.
You can try yum remove MySQL with instructions
Yum Remove PHP
Yum Remove httpd