rpm -qa|grep httpd
列出包如下
httpd-2.2.3-63.el5.centos.1
httpd-manual-2.2.3-63.el5.centos.1
卸載包
rpm -e httpd-manual-2.2.3-63.el5.centos.1
rpm -e system-config-httpd-1.3.3.3-1.el5
這樣就卸載完成了
卸載自帶Apache
1、# rpm -qa|grep httpd,查看與httpd相關(guān)軟件包。
" httpd-2.2.3-11.el5_2.centos.4
"
2、然后刪除httpd:
"# rpm -e httpd
"
出現(xiàn)問題:
" error: Failed dependencies:
httpd >= 2.2.0 is needed by (installed) gnome-user-share-0.10-6.el5.i386
"
3、還有一個(gè)相關(guān)的軟件包沒有刪除,清除之,即:
"#rpm -e gnome-user-share
"
4、再刪除httpd
"# rpm -e httpd
"
#可以使用參數(shù)–nodeps的意思就是不管各個(gè)程序包間的依賴關(guān)系。
"#rpm -e –nodeps httpd //這樣不需要?jiǎng)h除gnome-user-share了