Uninstalling LinuxMysql, Apache, and Php

Source: Internet
Author: User
Tags php software
Unmount LinuxMysql, Apache, and Php-Linux Enterprise Application-Linux server application information. For details, refer to the following section. Many people do not want to use Linux's built-in Mysql, Apache, and Php software tools, but the system is incorrect when installing the new version, before installation, uninstall the Mysql, Apache, and Php services and software tools that come with Linux.

The uninstall procedure is as follows:

Uninstall Mysql [root @ yourdomainname/] # rpm-qa | grep mysql
Mysql-3.23.58-9
Php-mysql-4.3.4-11
Mod_auth_mysql-20030510-4.1
Mysql-server-3.23.58-9

Note: rpm? Qa | grep mysql command is used to list mysql-related packages. In my example above, rpm ora core2 sets the default mysql rpm package list, 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 mysql-server-3.23.58-9 as follows:
Rpm? E mysql-server

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 mod_auth_mysql-20030510-4.1 package, the method is as follows:

Rpm? E mod_auth_mysql

Uninstall Apache [root @ yourdomainname/] # rpm-qa | grep httpd
Httpd-2.0.49-4
System-config-httpd-1.2.0-3
Httpd-manual-2.0.49-4

Note: The method is the same as to uninstall Mysql.

Uninstall PHP [root @ yourdomainname/] # rpm-qa | grep php
Php-odbc-4.3.4-11
Php-4.3.4-11
Php-mysql-4.3.4-11
Php-pear-4.3.4-11
Php-ldap-4.3.4-11
Php-pgsql-4.3.4-11

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.4-11, it can not be removed. Use:

[Root @ yourdomainname/] # rpm-e php-4.3.4-11? Nodeps

The command is tough.

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.