The whole process of unloading lamp under CentOS system

Source: Internet
Author: User
Tags centos

[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

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.