How to Install and Uninstall apache2 Package on Debian 12 (Bookworm)

Last updated: May 09,2024

1. Install "apache2" package

Please follow the instructions below to install apache2 on Debian 12 (Bookworm)

$ sudo apt update $ sudo apt install apache2

2. Uninstall "apache2" package

This guide let you learn how to uninstall apache2 on Debian 12 (Bookworm):

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

3. Information about the apache2 package on Debian 12 (Bookworm)

Package: apache2
Version: 2.4.57-2
Installed-Size: 566
Maintainer: Debian Apache Maintainers
Architecture: amd64
Provides: httpd, httpd-cgi
Depends: apache2-bin (= 2.4.57-2), apache2-data (= 2.4.57-2), apache2-utils (= 2.4.57-2), lsb-base, media-types, perl:any, procps
Pre-Depends: init-system-helpers (>= 1.54~)
Recommends: ssl-cert
Suggests: apache2-doc, apache2-suexec-pristine | apache2-suexec-custom, www-browser
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.57-2_amd64.deb
Size: 214864
MD5sum: 3e510937d7323527502133b230614002
SHA256: 5857cb3cfd29597c3b4898b788b048b2c0bcf092012773c330459dc9abfbb63f