[root@apache02 home]# rpm -q -a|grep http
httpd-2.0.52-25.ent
httpd-manual-2.0.52-25.ent
system-config-httpd-1.3.1-1
httpd-devel-2.0.52-25.ent
httpd-suexec-2.0.52-25.ent
#rpm -e httpd-2.0.52-25.ent
error: Failed dependencies:
httpd-mmn = 20020903 is needed by (installed) mod_auth_kerb-5.0-1.i386
httpd-mmn = 20020903 is needed by (installed) mod_auth_mysql-2.6.1-2.2.i386
httpd-mmn = 20020903 is needed by (installed) mod_auth_pgsql-2.0.1-7.1.i386
.........................................
webserver is needed by (installed) webalizer-2.01_10-25.i386
webserver is needed by (installed) mailman-2.1.5.1-34.rhel4.3.i386
webserver is needed by (installed) htdig-web-3.2.0b6-3.40.2.rhel4.i386
httpd = 2.0.52-25.ent is needed by (installed) httpd-manual-2.0.52-25.ent.i386
httpd = 2.0.52-25.ent is needed by (installed) httpd-suexec-2.0.52-25.ent.i386
httpd >= 2.0.40 is needed by (installed) mod_auth_pgsql-2.0.1-7.1.i386
httpd >= 2.0.40 is needed by (installed) mod_perl-1.99_16-4.i386
.......................................
httpd = 2.0.52 is needed by (installed) httpd-devel-2.0.52-25.ent.i386
[root@apache02 home]# rpm -e httpd-2.0.52-25.ent --nodeps
warning: /etc/httpd/conf/httpd.conf saved as /etc/httpd/conf/httpd.conf.rpmsave
注:加上--nodeps (不检查依赖性)。因为有些软件是相互依赖的,先卸哪个都不行,就得用nodeps这个参数才行。
[root@apache02 home]#
[root@apache02 home]# rpm -e httpd-manual-2.0.52-25.ent
[root@apache02 home]# rpm -e system-config-httpd-1.3.1-1
[root@apache02 home]# rpm -e httpd-manual-2.0.52-25.ent
[root@apache02 home]# rpm -e system-config-httpd-1.3.1-1
[root@apache02 home]# rpm -e httpd-devel-2.0.52-25.ent
error: Failed dependencies:
httpd-devel is needed by (installed) mod_perl-devel-1.99_16-4.i386
[root@apache02 home]# rpm -e httpd-devel-2.0.52-25.ent --nodeps
[root@apache02 home]# rpm -e httpd-suexec-2.0.52-25.ent
[root@apache02 home]# rpm -q -a|grep http
[root@apache02 home]#