Uninstall Mysql, Apache, and Php in Linux-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 @ 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:
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.
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