Uninstall Mysql, Apache, and Php in Linux

Source: Internet
Author: User
Article Title: uninstall Mysql, Apache, and Php in Linux. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.

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: rpm? Qa | grep mysql command is used to list mysql-related packages. In the preceding example, the rpm package list for mysql installation in Linux AS4 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 libdbi-dbd-mysql-0.6.5-10.RHEL4.1 as follows: rpm? E dbd-mysql-0.6.5-10.RHEL4.1

Note: 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

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.