1, delete php, delete before you need to view PHP dependency package, using Rpm-qa|grep PHP
[Email protected] ~]# Rpm-qa |grep php
Php55w-mysql-5.5.38-1.w6.x86_64
Php55w-common-5.5.38-1.w6.x86_64
Php55w-odbc-5.5.38-1.w6.x86_64
Php55w-gd-5.5.38-1.w6.x86_64
Php55w-xmlrpc-5.5.38-1.w6.x86_64
Php55w-pdo-5.5.38-1.w6.x86_64
Php55w-imap-5.5.38-1.w6.x86_64
Php55w-ldap-5.5.38-1.w6.x86_64
Php55w-cli-5.5.38-1.w6.x86_64
Php55w-xml-5.5.38-1.w6.x86_64
Php55w-5.5.38-1.w6.x86_64
The deletion needs to be deleted in the order of dependency, otherwise the error will be as follows:
[Email protected] ~]# rpm-e php55w-pdo-5.5.38-1.w6.x86_64
error:failed dependencies:
Php55w-pdo (x86-64) is needed by (installed) php55w-mysql-5.5.38-1.w6.x86_64
Php55w-pdo (x86-64) = 5.5.38-1.w6 is needed by (installed) php55w-odbc-5.5.38-1.w6.x86_64
[Email protected] ~]# rpm-e php55w-mysql-5.5.38-1.w6.x86_64
[Email protected] ~]# rpm-e php55w-xml-5.5.38-1.w6.x86_64
[Email protected] ~]# rpm-e php55w-pdo-5.5.38-1.w6.x86_64
[Email protected] ~]# rpm-e php55w-5.5.38-1.w6.x86_64
[Email protected] ~]# rpm-e php55w-xmlrpc-5.5.38-1.w6.x86_64
[Email protected] ~]# rpm-e php55w-gd-5.5.38-1.w6.x86_64
[Email protected] ~]# rpm-e php55w-cli-5.5.38-1.w6.x86_64
[Email protected] ~]# rpm-e php55w-imap-5.5.38-1.w6.x86_64
[Email protected] ~]# rpm-e php55w-odbc-5.5.38-1.w6.x86_64
[Email protected] ~]# rpm-e php55w-ldap-5.5.38-1.w6.x86_64
[Email protected] ~]# rpm-e php55w-pdo-5.5.38-1.w6.x86_64
[Email protected] ~]# rpm-e php55w-common-5.5.38-1.w6.x86_64
Delete finished, in the use of the command see also, if not, indicating that the deletion is done.
[[email protected] ~]# rpm-qa|grep PHP
[Email protected] ~]#
centos6.5 Delete Lamp