Installion's Lion Logo

Installion.co.uk

How To Uninstall apache2 On Debian 9

To uninstall apache2 just follow these instructions.

Uninstall just apache2

Apache HTTP ServerDebian 9.0httpd2.4.25-3
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.25-3
MaintainerDebian Apache Maintainers <debian-apache@lists.debian.org>
Home pagehttp://httpd.apache.org/
DescriptionApache HTTP Server
Distrodebian
Releasestretch
Repomain
Sectionhttpd

Dependencies