php卸载

想把PHP卸载干净,直接用yum remove php卸载不干净,首先查看安装的rpm包目录,然后按照顺序一个个卸载。

1.首先查看机器上安装的所有php相关的rpm包
[root@localhost nginx]# rpm -qa | grep php
php55-php-pecl-zip-1.15.1-1.el7.remi.x86_64
php55-php-gd-5.5.38-7.el7.remi.x86_64
php55-runtime-2.1-5.el7.remi.x86_64
php55-2.1-5.el7.remi.x86_64
php55-php-pecl-jsonc-1.3.10-1.el7.remi.x86_64
php55-php-xml-5.5.38-7.el7.remi.x86_64
php55-php-5.5.38-7.el7.remi.x86_64
php55-php-common-5.5.38-7.el7.remi.x86_64
php55-php-process-5.5.38-7.el7.remi.x86_64
php55-php-mbstring-5.5.38-7.el7.remi.x86_64
php55-php-pear-1.10.5-2.el7.remi.noarch
php55-php-cli-5.5.38-7.el7.remi.x86_64

2.按依赖顺序进行删除
rpm -e php55-php-pecl-zip-1.15.1-1.el7.remi.x86_64
rpm -e php55-php-gd-5.5.38-7.el7.remi.x86_64
rpm -e php55-runtime-2.1-5.el7.remi.x86_64
rpm -e php55-2.1-5.el7.remi.x86_64
rpm -e php55-php-pecl-jsonc-1.3.10-1.el7.remi.x86_64
rpm -e php55-php-xml-5.5.38-7.el7.remi.x86_64
rpm -e php55-php-5.5.38-7.el7.remi.x86_64
rpm -e php55-php-common-5.5.38-7.el7.remi.x86_64
rpm -e php55-php-process-5.5.38-7.el7.remi.x86_64
rpm -e php55-php-mbstring-5.5.38-7.el7.remi.x86_64
rpm -e php55-php-pear-1.10.5-2.el7.remi.noarch
rpm -e php55-php-cli-5.5.38-7.el7.remi.x86_64

你可能感兴趣的:(php卸载)