centos6.5 删除lamp

Posted 赤热的心

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了centos6.5 删除lamp相关的知识,希望对你有一定的参考价值。

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

[[email protected] ~]# 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

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

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

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

 

以上是关于centos6.5 删除lamp的主要内容,如果未能解决你的问题,请参考以下文章

利用extundelete工具恢复Centos6.5中误删除的文件

Centos6.5 编译安装python3.5版本,无法使用退格键方向键删除键等

Centos6.5下编译安装mysql 5.6

centos6.5 mysql 快速搭建

centos6.5下samba如何使一个用户只能查看和删除自己的文件,不能查看和删除别人的文件

CentOS6.5 - yum对Mysql的安装与配置