Apache Linux上RPM包卸载 备忘

本文详细介绍了如何在Linux系统中通过使用rpm命令卸载Apache及其相关组件。文章演示了遇到依赖性问题时如何解决,并最终完成Apache服务器的完全卸载。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

[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]#

至此,Apache 的RPM包卸载 完成。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

do2jiang

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值