Home >Operation and Maintenance >CentOS >How to uninstall php on centos
View php version
php -v
View php related software packages
#rpm -qa|grep php
(Video tutorial recommendation: linux video tutorial)
The prompts are as follows:
#php-pdo-5.1.6-27.el5_5.3 #php-mysql-5.1.6-27.el5_5.3 #php-xml-5.1.6-27.el5_5.3 #php-cli-5.1.6-27.el5_5.3 #php-common-5.1.6-27.el5_5.3 #php-gd-5.1.6-27.el5_5.3
Note: Uninstall those without dependencies first.
The correct uninstallation sequence is:
# 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
Check whether the uninstallation is complete
php -v
Recommended tutorial: centos tutorial
The above is the detailed content of How to uninstall php on centos. For more information, please follow other related articles on the PHP Chinese website!