How to Install and Uninstall apache2 Package on Debian 10 (Buster)

Last updated: April 28,2024

1. Install "apache2" package

This guide covers the steps necessary to install apache2 on Debian 10 (Buster)

$ sudo apt update $ sudo apt install apache2

2. Uninstall "apache2" package

Here is a brief guide to show you how to uninstall apache2 on Debian 10 (Buster):

$ sudo apt remove apache2 $ sudo apt autoclean && sudo apt autoremove

3. Information about the apache2 package on Debian 10 (Buster)

Package: apache2
Version: 2.4.38-3+deb10u7
Installed-Size: 599
Maintainer: Debian Apache Maintainers
Architecture: amd64
Replaces: apache2.2-bin, apache2.2-common, libapache2-mod-proxy-uwsgi (<< 2.4.33)
Provides: httpd, httpd-cgi
Depends: apache2-bin (= 2.4.38-3+deb10u7), apache2-data (= 2.4.38-3+deb10u7), apache2-utils (= 2.4.38-3+deb10u7), lsb-base, mime-support, perl:any, procps
Pre-Depends: dpkg (>= 1.17.14)
Recommends: ssl-cert
Suggests: apache2-doc, apache2-suexec-pristine | apache2-suexec-custom, www-browser
Conflicts: apache2.2-bin, apache2.2-common
Breaks: libapache2-mod-proxy-uwsgi (<< 2.4.33)
Description: Apache HTTP Server
Description-md5: d02426bc360345e5acd45367716dc35c
Homepage: https://httpd.apache.org/
Tag: role::metapackage, suite::apache
Section: httpd
Priority: optional
Filename: pool/main/a/apache2/apache2_2.4.38-3+deb10u7_amd64.deb
Size: 251888
MD5sum: a387d1e8b50ed4eebd52320ae10f4113
SHA256: 0fff8c4beec2021b5bb07ae46e85aa6ff5638ac73d2eec9de5ed55024989679f