删除linux自带的php

阅读更多
[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)