欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

删除linux自带的php

程序员文章站 2022-07-05 09:07:29
...
[size=large]

[Gogo_yueyue@ShadowFiend ~]$ rpm -qa|grep php
php-gd-5.3.2-6.el6.i686
php-cli-5.3.2-6.el6.i686
php-pear-1.9.0-2.el6.noarch
php-pdo-5.3.2-6.el6.i686
php-common-5.3.2-6.el6.i686
php-xml-5.3.2-6.el6.i686
[Gogo_yueyue@ShadowFiend ~]$ rpm -e php-gd-5.3.2-6.el6.i686
error: can't create transaction lock on /var/lib/rpm/.rpm.lock (权限不够)
[Gogo_yueyue@ShadowFiend ~]$ su
密码:
[root@ShadowFiend Gogo_yueyue]# rpm -e php-gd-5.3.2-6.el6.i686

[root@ShadowFiend Gogo_yueyue]# 
[root@ShadowFiend Gogo_yueyue]# rpm -qa |grep php
php-cli-5.3.2-6.el6.i686
php-pear-1.9.0-2.el6.noarch
php-pdo-5.3.2-6.el6.i686
php-common-5.3.2-6.el6.i686
php-xml-5.3.2-6.el6.i686
[root@ShadowFiend Gogo_yueyue]# rpm -e php-cli-5.3.2-6.el6.i686
error: Failed dependencies:
	php-cli >= 5.1.0-1 is needed by (installed) php-pear-1:1.9.0-2.el6.noarch
[root@ShadowFiend Gogo_yueyue]# rpm -e php-pear-1.9.0-2.el6.noarch
[root@ShadowFiend Gogo_yueyue]# rpm -e php-cli-5.3.2-6.el6.i686
[root@ShadowFiend Gogo_yueyue]# rpm -e php-common-5.3.2-6.el6.i686
error: Failed dependencies:
	php-common = 5.3.2-6.el6 is needed by (installed) php-pdo-5.3.2-6.el6.i686
	php-common = 5.3.2-6.el6 is needed by (installed) php-xml-5.3.2-6.el6.i686
[root@ShadowFiend Gogo_yueyue]# rpm -e php-xml-5.3.2-6.el6.i686
[root@ShadowFiend Gogo_yueyue]# rpm -e php-pdo-5.3.2-6.el6.i686
[root@ShadowFiend Gogo_yueyue]# rpm -e php-common-5.3.2-6.el6.i686
[root@ShadowFiend Gogo_yueyue]# rpm -qa |grep php


[/size]
相关标签: PHP Linux XML