Home > Article > Backend Development > 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
2 . Uninstall 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.
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:
5. Check again whether php has been uninstalled
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!