php怎么卸载

爱喝马黛茶的安东尼
爱喝马黛茶的安东尼原创
2023-02-23 14:10:016075浏览

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

相关推荐:《PHP教程

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怎么卸载的详细内容,更多请关注php中文网其它相关文章!

声明:本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn核实处理。