0

How can I remove apache from my server?I'm using Ubuntu 9 64bit, the apache2 came preinstalled.

1

A command like this may get rid of everything.

dpkg --get-selections | grep apache | xargs apt-get --yes apt-get purge

You probably should run dpkg --get-selections | grep apache this command first to see the list of packages that will be uninstalled so you can be sure the grep is selecting the right things.

| improve this answer | |
5

As root (or via sudo): $ apt-get remove apache2

| improve this answer | |
  • Nope, doesn't work – Uffo Mar 7 '10 at 20:54
  • 8
    Why "doesn't it work"? Do you get an error message? – EEAA Mar 7 '10 at 20:56
0
sudo /etc/init.d/apache2 stop
sudo apt-get --purge remove apache2
| improve this answer | |
0

this worked for me: aptitude purge ~i~napache

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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