Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I performed the following command apt-get remove apache2 but when I type service --status-all apache2 is still up in the list. How can you completely uninstall apache2?

share|improve this question
up vote 1 down vote accepted

An apt-get install apache2 will actually install apache2.

To uninstall apache2 you have to use apt-get remove apache2. This will still leave config files behind, though.

To fully uninstall apache2 and remove its config files try apt-get purge apache2.

Before trying each of these, take a look at man apt-get to make sure, that the mentioned commands will do what you want.

share|improve this answer
Wow, what a bad typo, I mean I typed apt-get remove apache2 – IMB Oct 16 '12 at 17:26

I had a similar issue and I had to run the following:

apt-get remove apache2-utils
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.