CentOS Clean Uninstall Apache-php-mysql

Source: Internet
Author: User

Yum-y Remove httpd
will be and httpd have a dependency on the package also deleted, is a relatively clean and easy way to unload, but there will still be missed.
can be used Rpm-qa | grep httpd See if there are omissions. If so, you can delete it with the RPM-E package name.
The ultimate way to leak: Httpd-v and which httpd

MySQL and PHP are also deleted in a similar way.
PHP relies on a lot of dependencies, you can first use Rpm-qa | grep PHP looks at all the dependencies, and then uses the command rpm-e the package name to delete them one by one. When you delete, you will be prompted with a dependency, prompting that package to be the first.
The approximate order is as follows:
Rpm-e php-fpm-5.3.3-22.el6.x86_64

Rpm-e php-pdo-5.3.3-22.el6.x86_64

Rpm-e Php-pear-1.9.4-4.el6.noarch

Rpm-e php-cli-5.3.3-22.el6.x86_64

Rpm-e php-5.3.3-22.el6.x86_64

Rpm-e php-xml-5.3.3-22.el6.x86_64

Rpm-e php-gd-5.3.3-22.el6.x86_64

Rpm-e php-common-5.3.3-22.el6.x86_64

Clean Delete MySQL

Yum remove MySQL mysql-server mysql-libs compat-mysql51
Rm-rf/var/lib/mysql
Rm/etc/my.cnf
See if you have MySQL software:
Rpm-qa|grep MySQL
which MySQL
Mysql-v
The above three command if there is return information, it is not deleted clean, continue to search for file deletion

re-install tutorial , installation of LEMP services (Nginx, Mariadb/mysql and PHP) under CentOS 7

CentOS Clean Uninstall Apache-php-mysql

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.