How to Install and Uninstall apache2 Package on Ubuntu 20.04 LTS (Focal Fossa)

Last updated: May 09,2024

1. Install "apache2" package

Please follow the instructions below to install apache2 on Ubuntu 20.04 LTS (Focal Fossa)

$ sudo apt update $ sudo apt install apache2

2. Uninstall "apache2" package

Please follow the instructions below to uninstall apache2 on Ubuntu 20.04 LTS (Focal Fossa):

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

3. Information about the apache2 package on Ubuntu 20.04 LTS (Focal Fossa)

Package: apache2
Architecture: amd64
Version: 2.4.41-4ubuntu3.15
Priority: optional
Section: web
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian Apache Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 531
Provides: httpd, httpd-cgi
Pre-Depends: dpkg (>= 1.17.14)
Depends: apache2-bin (= 2.4.41-4ubuntu3.15), apache2-data (= 2.4.41-4ubuntu3.15), apache2-utils (= 2.4.41-4ubuntu3.15), lsb-base, mime-support, perl:any, procps
Recommends: ssl-cert
Suggests: apache2-doc, apache2-suexec-pristine | apache2-suexec-custom, www-browser, ufw
Conflicts: apache2.2-bin, apache2.2-common
Breaks: libapache2-mod-proxy-uwsgi (<< 2.4.33)
Replaces: apache2.2-bin, apache2.2-common, libapache2-mod-proxy-uwsgi (<< 2.4.33)
Filename: pool/main/a/apache2/apache2_2.4.41-4ubuntu3.15_amd64.deb
Size: 95592
MD5sum: 7b1c16e6a53d6dd586e6594950079353
SHA1: 0febe1cf91d7088e1cef86fb44ef7c00a7c90209
SHA256: b927d20e88ead153eaf5d37cc2bfa05e69d8c9bdf5e009a00ef96d5ba9c51b09
SHA512: 00d935d6ead05206b0f7695ec756202d72534fec77b54ec6bcb50846804a7dafa3802fc441105c5f250b4b98db1cbd404b945b48115c82ccf5cd437d628c87f8
Homepage: https://httpd.apache.org/
Description: Apache HTTP Server
Description-md5: d02426bc360345e5acd45367716dc35c
Task: lamp-server

Package: apache2
Architecture: amd64
Version: 2.4.41-4ubuntu3
Priority: optional
Section: web
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian Apache Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 528
Provides: httpd, httpd-cgi
Pre-Depends: dpkg (>= 1.17.14)
Depends: apache2-bin (= 2.4.41-4ubuntu3), apache2-data (= 2.4.41-4ubuntu3), apache2-utils (= 2.4.41-4ubuntu3), lsb-base, mime-support, perl:any, procps
Recommends: ssl-cert
Suggests: apache2-doc, apache2-suexec-pristine | apache2-suexec-custom, www-browser, ufw
Conflicts: apache2.2-bin, apache2.2-common
Breaks: libapache2-mod-proxy-uwsgi (<< 2.4.33)
Replaces: apache2.2-bin, apache2.2-common, libapache2-mod-proxy-uwsgi (<< 2.4.33)
Filename: pool/main/a/apache2/apache2_2.4.41-4ubuntu3_amd64.deb
Size: 95504
MD5sum: 2d88324bc5128985e8d56e8f4fa31f27
SHA1: 9148fd37cf821d98c29355a3c5a7ec0bd3c33336
SHA256: b9755bfe66825b53db1371cb163c14ceb7d436a6b5d2bfe09d6ccb8a98746b95
Homepage: https://httpd.apache.org/
Description: Apache HTTP Server
Description-md5: d02426bc360345e5acd45367716dc35c
Task: lamp-server