How to uninstall httpd in Linux

Source: Internet
Author: User
Today, I scanned the linux server and found some security risks in the httpd service. because a new version of apache has been installed before, the httpd service that comes with linux installation does not have to be left in the system. As a result, the following error occurs: & nbsp; & nbsp

Today, I scanned the linux server and found some security risks in the httpd service. because a new version of apache has been installed before, the httpd service that comes with linux installation does not have to be left in the system. So we performed:

# Rpm-e httpd

Result: the following error occurs.

Httpd-mmn = 20020628 is needed by (installed) mod_perl-1.99_07-5
Httpd-mmn = 20020628 is needed by (installed) mod_python-3.0.1-3
Httpd-mmn = 20020628 is needed by (installed) mod_ssl-2.0.40-21
Httpd-mmn = 20020628 is needed by (installed) php-4.2.2-17
Libapr. so.0 is needed by (installed) mod_perl-1.99_07-5
Libaprutil. so.0 is needed by (installed) mod_perl-1.99_07-5
Webserver is needed by (installed) webalizer-2.01_10-11
Httpd> = 2.0.40 is needed by (installed) mod_perl-1.99_07-5
Httpd> = 2.0.40 is needed by (installed) mod_python-3.0.1-3
Httpd is needed by (installed) mod_ssl-2.0.40-21

It seems that to uninstall these things, you should also uninstall its dependent packages, so

# Rpm-e mod_ssl
# Rpm-e mod_python
# Rpm-e mod_perl
# Rpm-e webalizer

After all dependent packages are detached

Again # rpm-e httpd succeeded!

I found the following rpm on the Internet and can add some parameters.

For example, # rpm-e httpd -- nodeps does not need to uninstall these dependency packages.

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.