How to thoroughly delete Apache from centos

Source: Internet
Author: User
Tags centos
First, disable the httpd service.

 

/Etc/init. d/httpd stop

 

List httpd related packages

 

Rpm-qa | grep httpd

 

The package list is as follows:

 

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

 

This completes the uninstallation.

 

Uninstall Apache

 

1. # rpm-qa | grep httpd. Check the software packages related to httpd.

 

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

 

"

 

2. Delete httpd:

 

"# Rpm-e httpd

 

"

 

Problem:

 

"Error: Failed dependencies:

 

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

 

"

 

3. If a related software package is not deleted, clear it, that is:

 

"# Rpm-e gnome-user-share

 

"

 

4. Delete httpd again.

 

"# Rpm-e httpd

 

"

 

# The parameter nodeps can be used regardless of the dependency between packages.

 

"# Rpm-e-nodeps httpd // You do not need to delete 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.