2

How can I uninstall Apache2 on Ubuntu 14.04, from the terminal? I don't know the commands.

j0h
  • 14,825
Tony Ventura
  • 55
  • 1
  • 1
  • 3
  • 8
    sudo apt-get sudo apt-get remove apache2. Please refer here : http://askubuntu.com/questions/151941/how-can-you-completely-remove-a-package – hg8 Sep 08 '15 at 09:10

2 Answers2

15

This would do what you want

sudo apt-get remove apache2*
6

If you just want to remove apache use:

sudo apt-get remove apache2

Though if you don't intend to reinstall at some point and would like to remove all of apache's configuration files then use:

sudo apt-get purge apache2
Arronical
  • 19,893