码迷,mamicode.com
首页 > 其他好文 > 详细

centos6.5 删除lamp

时间:2016-12-31 23:54:23      阅读:402      评论:0      收藏:0      [点我收藏+]

标签:mysql-5.5   erro   ldap   needed   顺序   centos6.5   gre   php   failed   

1、删除php,删除之前需要查看php依赖包,使用 rpm -qa|grep php

[root@localhost ~]# 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

删除需要按依赖顺序进行删除,否则会报错,如下:

[root@localhost ~]# 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
[root@localhost ~]# rpm -e php55w-mysql-5.5.38-1.w6.x86_64

[root@localhost ~]# rpm -e php55w-xml-5.5.38-1.w6.x86_64
[root@localhost ~]# rpm -e php55w-pdo-5.5.38-1.w6.x86_64
[root@localhost ~]# rpm -e php55w-5.5.38-1.w6.x86_64
[root@localhost ~]# rpm -e php55w-xmlrpc-5.5.38-1.w6.x86_64
[root@localhost ~]# rpm -e php55w-gd-5.5.38-1.w6.x86_64
[root@localhost ~]# rpm -e php55w-cli-5.5.38-1.w6.x86_64
[root@localhost ~]# rpm -e php55w-imap-5.5.38-1.w6.x86_64
[root@localhost ~]# rpm -e php55w-odbc-5.5.38-1.w6.x86_64
[root@localhost ~]# rpm -e php55w-ldap-5.5.38-1.w6.x86_64
[root@localhost ~]# rpm -e php55w-pdo-5.5.38-1.w6.x86_64
[root@localhost ~]# rpm -e php55w-common-5.5.38-1.w6.x86_64
删除完毕,在使用命令看还有么,如果没有,表明删除完了。
[root@localhost ~]# rpm -qa|grep php
[root@localhost ~]#

 

centos6.5 删除lamp

标签:mysql-5.5   erro   ldap   needed   顺序   centos6.5   gre   php   failed   

原文地址:http://www.cnblogs.com/xingkong001/p/6240500.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!