本 View PHP version command:
#php -v
This command is to delete not clean
#yum remove php
#php -v
You will still see version information. . . . .
must be forcibly deleted
#rpm -qa|grep php
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 that to uninstall, you must uninstall the one without dependencies first
pdo is Dependencies of mysql;
common is a dependency of gd; For example:
# rpm -e php-pdo-5.1.6-27.el5_5.3
error: Failed dependencies: php-pdo is needed by ( installed) php-mysql-5.1.6-27.el5_5.3.i386
So 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
Use again# php -v
There is no prompt to view version information
The above introduces how to forcefully uninstall PHP on centOS, including the relevant aspects. I hope it will be helpful to friends who are interested in PHP tutorials.
🎜