Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to uninstall Mysql, Apache and Php in Linux system

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces "how to uninstall self-contained Mysql, Apache, Php in Linux system". In daily operation, I believe many people have doubts about how to uninstall their own Mysql, Apache and Php in Linux system. Xiaobian consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the doubts of "how to uninstall self-contained Mysql, Apache and Php in Linux system". Next, please follow the editor to study!

The uninstall steps are 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 to list all mysql-related packages. My above example is the list of rpm packages that Linux AS4 installs mysql by default. The list may be different if it is another Linux version, but don't worry, no matter what it is, uninstall starts from the bottom package until the first one is uninstalled.

For example, in this example, we should uninstall the libdbi-dbd-mysql-0.6.5-10.RHEL4.1 method first 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, and the final version number is not required. For example, we will uninstall the mysqlclient10-3.23.58-4.RHEL4.1 package next, 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, needless to say

Note: if you can't uninstall when uninstalling, the system will generally prompt for package dependencies and list the names of dependent packages. Uninstall prompted dependent packages first.

If there is really a package that cannot be uninstalled, you can add the parameter-nodeps to uninstall it. For example, if we uninstall php-4.3.9-3.15, it really cannot be uninstalled.

Just use:

[root@localhost] # rpm-e php-4.3.9-3.15-- nodeps

At this point, the study on "how to uninstall the Mysql, Apache, Php in the Linux system" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report