Linux卸载自带的apache

先查看
[root@localhost ~] rpm -qa | grep httpd
httpd-2.2.3-43.e15.centos
证明有
[root@localhost ~] rpm -e httpd
error: Failed dependencies:
    httpd >= 2.2.0 is needed by (installed) gnome-user-share-0.10-6.e15.1386
有依赖关系  则先删除gonme..在删除httpd
[root@localhost ~] rpm -e gnome-user-share
[root@localhost ~] rpm -e httpd
再查看
[root@localhost ~] rpm -qa | grep httpd
就没有了

**或者可以使用参数–nodeps的意思就是不管各个程序包间的依赖关系。

[root@localhost etc]#rpm -e –nodeps httpd //这样不需要删除gnome-user-share了**

你可能感兴趣的:(linux)