Very silent, CentOS actually PHP version only 5.1.6, many open-source CMS cannot be installed.
To view the PHP version command:
#php-V
The following command is to remove the dirty
#yum Remove PHP
Because you can use this command later.
#php-V
You will still see the version information .....
Must be forced to delete, use the following command to view all PHP packages
#rpm-qa|grep PHP
Tips 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 to uninstall the no dependency first
PDO is a dependency of MySQL; Common is a dependency of GD;
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 unloading 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
Re-use
# php-v
View version information no longer prompted
Linux CentOS completely uninstall PHP