Home  >  Article  >  Backend Development  >  How to uninstall installed php

How to uninstall installed php

藏色散人
藏色散人Original
2020-04-27 13:28:1810255browse

How to uninstall installed php

How to uninstall php that has been installed?

Due to project requirements, the PHP version must be lowered from 5.4 to 5.3. Therefore, it is necessary to uninstall the PHP that comes with CentOS7.0. Please see the following steps.

Method/Step

Step one: Uninstall php5.4

1. Check php version

How to uninstall installed php

2 . Uninstall php

How to uninstall installed php

3. Check whether php is uninstalled

php failed to complete the uninstallation, and there are corresponding dependency packages. So you need to uninstall it next.

How to uninstall installed php

4. Uninstall the dependent package corresponding to php

The information on the Internet is to use rpm -e to uninstall, but after trying several times, it prompts that the package cannot be found. Installation package.

# rpm -e php-mysql-5.1.6-27.el5_5.3# rpm -e php-pdo-5.1.6-27.el5_5.3# rpm -e php-xml-5.1.6-27.el5_5.3# rpm -e php-cli-5.1.6-27.el5_5.3# rpm -e php-gd-5.1.6-27.el5_5.3# rpm -e php-common-5.1.6-27.el5_5.3

The solution is as follows:

How to uninstall installed php

5. Check again whether php has been uninstalled

How to uninstall installed php

For more related tutorials, please visit php Chinese website.

The above is the detailed content of How to uninstall installed php. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn