How to uninstall apache on centos

藏色散人
Release: 2019-08-07 11:05:02
Original
4186 people have browsed it

How to uninstall apache on centos

How to uninstall apache in centos?

There are many ways to uninstall Apache in CentOS system. Here are the built-in apache and the apache we installed. Now I will introduce to you how to uninstall Apache in CentOS and solve the problems encountered. plan.

How to uninstall apache in centos:

First close the httpd service

/etc/init.d/httpd stop
Copy after login

List httpd related packages

rpm -qa|grep httpd
Copy after login

List The package is as follows

httpd-2.2.3-63.el5.centos.1
httpd-manual-2.2.3-63.el5.centos.1
Copy after login

Uninstall the package

rpm -e httpd-manual-2.2.3-63.el5.centos.1
rpm -e system-config-httpd-1.3.3.3-1.el5
Copy after login

The uninstallation is completed

Uninstall the built-in Apache

1, # rpm - qa|grep httpd, view software packages related to httpd.

httpd-2.2.3-11.el5_2.centos.4
Copy after login

2. Then delete httpd:

# rpm -e httpd
Copy after login

Problem occurs:

error: Failed dependencies:
httpd >= 2.2.0 is needed by (installed) gnome-user-share-0.10-6.el5.i386
Copy after login

3. There is also a related software package that has not been deleted, clear it, that is:

#rpm -e gnome-user-share
Copy after login

4. Delete httpd

# rpm -e httpd
#可以使用参数–nodeps的意思就是不管各个程序包间的依赖关系。
#rpm -e –nodeps httpd //这样不需要删除gnome-user-share了
Copy after login

For more Apache related knowledge, please visit the Apache Usage Tutorial column!

The above is the detailed content of How to uninstall apache on centos. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template