天天看點

Linux解除安裝系統自帶的httpd的方法

    今天掃描linux的伺服器,發現了httpd服務存在一些安全隐患,由于以前安裝過新版本的apache,安裝linux時自帶的httpd服務就沒必要留在系統裡面了。于是進行了:

#rpm -e httpd

結果,出現以下錯誤

        httpd-mmn = 20020628 is needed by (installed) mod_perl-1.99_07-5

        httpd-mmn = 20020628 is needed by (installed) mod_python-3.0.1-3

        httpd-mmn = 20020628 is needed by (installed) mod_ssl-2.0.40-21

        httpd-mmn = 20020628 is needed by (installed) php-4.2.2-17

        libapr.so.0 is needed by (installed) mod_perl-1.99_07-5

        libaprutil.so.0 is needed by (installed) mod_perl-1.99_07-5

        webserver is needed by (installed) webalizer-2.01_10-11

        httpd >= 2.0.40 is needed by (installed) mod_perl-1.99_07-5

        httpd >= 2.0.40 is needed by (installed) mod_python-3.0.1-3

        httpd is needed by (installed) mod_ssl-2.0.40-21

看來,要解除安裝這些東西還應該解除安裝它的依賴包,于是

#rpm -e mod_ssl

#rpm -e mod_python

#rpm -e mod_perl

#rpm -e webalizer

把所有的依賴包都解除安裝後

繼續閱讀