This article mainly introduces the complete uninstallation of PHP on liunx centos6.5, which has certain reference value. Now I share it with you. Friends in need can refer to it.
View PHP version command:
Related recommendations:#php -v
##Preliminary deletion of the php package (can be skipped)
#yum remove php
#rpm -qa|grep php
##View all php software Package##The prompt is 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 before uninstalling, you must first uninstall the
Uninstall command
#rpm -e php-mysql-5.1.6-27.el5_5. 3Mandatory parameters are required for software packages that cannot be uninstalled when they encounter interdependencies --nodeps
#rpm -e php-mysql-5.1.6-27.el5_5.3 --nodeps
After the uninstallation is complete, check again to see if all php packages have been uninstalled
#rpm - qa|grep php
# again Check the php version:
#php -v
centos install php5, uninstall php , Install php7
phpnow uninstall method: Completely delete or uninstall the PHPnow environment configuration package (illustration)
The above is the detailed content of liunx centos6.5 completely uninstall php. For more information, please follow other related articles on the PHP Chinese website!