Installlion's Logo

Installlion.com

How To Uninstall apache2 On Ubuntu 16.04 LTS

To uninstall apache2 just follow these instructions.

Uninstall just apache2

Apache HTTP ServerUbuntu 16.04 LTSweb2.4.18-2ubuntu3
sudo apt-get remove apache2

This will remove just the apache2 package itself.

Uninstall apache2 and its dependencies

sudo apt-get remove --auto-remove apache2

This will remove the apache2 package and any other dependant packages which are no longer needed.

Purging your config/data too

If you also want to delete your local/config files for apache2 then this will work.

 Caution! Purged config/data can not be restored by reinstalling the package.
sudo apt-get purge apache2

Or similarly, like this apache2

sudo apt-get purge --auto-remove apache2

Package Data

Packageapache2
Version2.4.18-2ubuntu3
MaintainerUbuntu Developers <[email protected]>
Home pagehttp://httpd.apache.org/
DescriptionApache HTTP Server
Distroubuntu
Releasexenial
Repomain
Sectionweb

Dependencies