中间件-apache卸载步骤
2015-12-16 14:16
585 查看
1、背景
现实情况往往是你想删除或卸载已安装好的软件。但你可能只知道这个软件安装好后的文件名是什么,此时可以先用which或其find找到你想删除的文件
2、查找已经安装的httpd文件
[root@localhost
rpm]# which httpd ---查删除的文件
/usr/sbin/httpd
[root@localhost rpm]#
rpm -q -f /usr/sbin/httpd --根据文件查出所对应的rpm包名
httpd-2.2.3-31.el5.centos
[root@localhost rpm]# rpm -e
httpd-2.2.3-31.el5.centos --执行删除
error: Failed dependencies:
--会报错,这说明会有依赖关系存在
httpd-mmn =
20051115 is needed by (installed)
php-5.1.6-23.2.el5_3.i386
httpd-mmn = 20051115 is needed by (installed)
mod_python-3.2.8-3.1.i386
httpd-mmn = 20051115 is needed by (installed)
mod_ssl-2.2.3-31.el5.centos.i386
httpd-mmn = 20051115 is needed by (installed)
mod_perl-2.0.4-6.el5.i386
webserver is needed by (installed)
webalizer-2.01_10-30.1.i386
httpd
is needed by (installed)
piranha-0.8.4-13.el5.i386
httpd
>= 2.0.40 is needed by (installed)
mod_python-3.2.8-3.1.i386
httpd =
0:2.2.3-31.el5.centos is needed by (installed)
mod_ssl-2.2.3-31.el5.centos.i386
httpd = 2.2.3-31.el5.centos is needed by (installed)
httpd-manual-2.2.3-31.el5.centos.i386
httpd >= 2.2.0 is needed by (installed)
gnome-user-share-0.10-6.el5.i386
httpd is needed by (installed)
system-config-httpd-1.3.3.3-1.el5.noarch
[root@localhost rpm]# rpm -e
--allmatches httpd-2.2.3-31.el5.centos
error: Failed
dependencies:
httpd-mmn = 20051115
is needed by (installed)
php-5.1.6-23.2.el5_3.i386
httpd-mmn = 20051115 is needed by (installed)
mod_python-3.2.8-3.1.i386
httpd-mmn = 20051115 is needed by (installed)
mod_ssl-2.2.3-31.el5.centos.i386
httpd-mmn = 20051115 is needed by (installed)
mod_perl-2.0.4-6.el5.i386
webserver is needed by (installed)
webalizer-2.01_10-30.1.i386
httpd
is needed by (installed)
piranha-0.8.4-13.el5.i386
httpd
>= 2.0.40 is needed by (installed)
mod_python-3.2.8-3.1.i386
httpd =
0:2.2.3-31.el5.centos is needed by (installed)
mod_ssl-2.2.3-31.el5.centos.i386
httpd = 2.2.3-31.el5.centos is needed by (installed)
httpd-manual-2.2.3-31.el5.centos.i386
httpd >= 2.2.0 is needed by (installed)
gnome-user-share-0.10-6.el5.i386
httpd is needed by (installed)
system-config-httpd-1.3.3.3-1.el5.noarch
-----加上删除一些选项,--allmatches是把与这个rpm包所有相匹配的rpm包全部删除掉;--nodeps是在删除时不进行依赖性的读取
[root@localhost
rpm]# rpm -e --allmatches --nodeps httpd-2.2.3-31.el5.centos
[root@localhost
rpm]# which httpd ---再次查询,已经安装的rpm包已经没有了
现实情况往往是你想删除或卸载已安装好的软件。但你可能只知道这个软件安装好后的文件名是什么,此时可以先用which或其find找到你想删除的文件
2、查找已经安装的httpd文件
[root@localhost
rpm]# which httpd ---查删除的文件
/usr/sbin/httpd
[root@localhost rpm]#
rpm -q -f /usr/sbin/httpd --根据文件查出所对应的rpm包名
httpd-2.2.3-31.el5.centos
[root@localhost rpm]# rpm -e
httpd-2.2.3-31.el5.centos --执行删除
error: Failed dependencies:
--会报错,这说明会有依赖关系存在
httpd-mmn =
20051115 is needed by (installed)
php-5.1.6-23.2.el5_3.i386
httpd-mmn = 20051115 is needed by (installed)
mod_python-3.2.8-3.1.i386
httpd-mmn = 20051115 is needed by (installed)
mod_ssl-2.2.3-31.el5.centos.i386
httpd-mmn = 20051115 is needed by (installed)
mod_perl-2.0.4-6.el5.i386
webserver is needed by (installed)
webalizer-2.01_10-30.1.i386
httpd
is needed by (installed)
piranha-0.8.4-13.el5.i386
httpd
>= 2.0.40 is needed by (installed)
mod_python-3.2.8-3.1.i386
httpd =
0:2.2.3-31.el5.centos is needed by (installed)
mod_ssl-2.2.3-31.el5.centos.i386
httpd = 2.2.3-31.el5.centos is needed by (installed)
httpd-manual-2.2.3-31.el5.centos.i386
httpd >= 2.2.0 is needed by (installed)
gnome-user-share-0.10-6.el5.i386
httpd is needed by (installed)
system-config-httpd-1.3.3.3-1.el5.noarch
[root@localhost rpm]# rpm -e
--allmatches httpd-2.2.3-31.el5.centos
error: Failed
dependencies:
httpd-mmn = 20051115
is needed by (installed)
php-5.1.6-23.2.el5_3.i386
httpd-mmn = 20051115 is needed by (installed)
mod_python-3.2.8-3.1.i386
httpd-mmn = 20051115 is needed by (installed)
mod_ssl-2.2.3-31.el5.centos.i386
httpd-mmn = 20051115 is needed by (installed)
mod_perl-2.0.4-6.el5.i386
webserver is needed by (installed)
webalizer-2.01_10-30.1.i386
httpd
is needed by (installed)
piranha-0.8.4-13.el5.i386
httpd
>= 2.0.40 is needed by (installed)
mod_python-3.2.8-3.1.i386
httpd =
0:2.2.3-31.el5.centos is needed by (installed)
mod_ssl-2.2.3-31.el5.centos.i386
httpd = 2.2.3-31.el5.centos is needed by (installed)
httpd-manual-2.2.3-31.el5.centos.i386
httpd >= 2.2.0 is needed by (installed)
gnome-user-share-0.10-6.el5.i386
httpd is needed by (installed)
system-config-httpd-1.3.3.3-1.el5.noarch
-----加上删除一些选项,--allmatches是把与这个rpm包所有相匹配的rpm包全部删除掉;--nodeps是在删除时不进行依赖性的读取
[root@localhost
rpm]# rpm -e --allmatches --nodeps httpd-2.2.3-31.el5.centos
[root@localhost
rpm]# which httpd ---再次查询,已经安装的rpm包已经没有了
相关文章推荐
- Ubuntu/Linux apache启动、重启、停止操作指令
- 中间件apache安装部署步骤
- vwampserver2.5-apache2.4.9允许外部访问的配置
- django在ubuntu下apache中部署
- apache 提示You don't have permission to access /test.php on this server.解决
- 在xampp中的Apache配置虚拟主机
- Apache 安全设置(持续记录)
- Apache ab 压力测试出现 Failed requests
- 关于开源项目中 Apache 开源协议的一些介绍
- Apache2.2.17源码编译安装以及配置虚拟主机
- Failure to transfer org.apache.maven.plugins
- 老李分享:apache日志分析及系统cpu,内存,负载情况监控 2
- 老李分享:apache日志分析及系统cpu,内存,负载情况监控
- Centos7 系统下怎么更改apache默认网站目录
- Linux下Apache+Mysql+PHP的环境搭建
- apache 403错
- apache2部署多个django项目
- 利用.htaccess, 启用Apache的简单密码验证
- Django+wsgi+Apache+Ubuntu 部署相关
- 将apache添加至windows服务