Home  >  Article  >  Backend Development  >  liunx centos6.5 completely uninstall php

liunx centos6.5 completely uninstall php

不言
不言Original
2018-04-26 16:48:573050browse

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:

#php -v


##Preliminary deletion of the php package (can be skipped)


#yum remove php



##View all php software Package

#rpm -qa|grep php

##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. 3


Mandatory 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


Related recommendations:

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn