CentOS Uninstall Apache method

Source: Internet
Author: User
Tags manual centos

First turn off the httpd service

/ETC/INIT.D/HTTPD stop

List HTTPD Related packages

Rpm-qa|grep httpd

The following packages are listed

Httpd-2.2.3-63.el5.centos.1

Httpd-manual-2.2.3-63.el5.centos.1

Uninstall Package

Rpm-e Httpd-manual-2.2.3-63.el5.centos.1

Rpm-e System-config-httpd-1.3.3.3-1.el5

So the uninstall is complete.

Uninstall self-with Apache

1, # Rpm-qa|grep httpd, view and httpd related packages.

"Httpd-2.2.3-11.el5_2.centos.4

"

2, and then delete the httpd:

"# RPM-E HTTPD

"

Problem occurs:

"Error:failed dependencies:

httpd >= 2.2.0 is needed by (installed) gnome-user-share-0.10-6.el5.i386

"

3, there is also a related package did not delete, clear, namely:

"#rpm-e Gnome-user-share

"

4, and then delete httpd

"# RPM-E HTTPD

"

#可以使用参数 –nodeps means that regardless of the dependencies between the packages.

"#rpm-e–nodeps httpd//This does not need to delete the Gnome-user-share

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.