How to Install and Uninstall apache2 Package on Ubuntu 21.10 (Impish Indri)

Last updated: April 27,2024

1. Install "apache2" package

This is a short guide on how to install apache2 on Ubuntu 21.10 (Impish Indri)

$ sudo apt update $ sudo apt install apache2

2. Uninstall "apache2" package

This guide covers the steps necessary to uninstall apache2 on Ubuntu 21.10 (Impish Indri):

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

3. Information about the apache2 package on Ubuntu 21.10 (Impish Indri)

Package: apache2
Architecture: amd64
Version: 2.4.48-3.1ubuntu3.1
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), init-system-helpers (>= 1.54~)
Depends: apache2-bin (= 2.4.48-3.1ubuntu3.1), apache2-data (= 2.4.48-3.1ubuntu3.1), apache2-utils (= 2.4.48-3.1ubuntu3.1), 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.48-3.1ubuntu3.1_amd64.deb
Size: 97820
MD5sum: cf2865cfc8ea2ed5f3438fe3a7b4ac3f
SHA1: bae7dd35632962860498bdf49af1525e3543f8c0
SHA256: f3ca5f2337e2fda0ffc30dbe20c30ec4c8c73e80899287870e1253e621f51869
SHA512: 0c72a6b8cc37138672999b67ee2202b4ecf8c237e38ade5782b6c07a48859edd887bfe59858ec468f290ea2700d33b3c8b69ac20198c1f64c7b22c31a18db908
Homepage: https://httpd.apache.org/
Description-en: Apache HTTP Server
The Apache HTTP Server Project's goal is to build a secure, efficient and
extensible HTTP server as standards-compliant open source software. The
result has long been the number one web server on the Internet.
.
Installing this package results in a full installation, including the
configuration files, init scripts and support scripts.
Description-md5: d02426bc360345e5acd45367716dc35c
Task: lamp-server

Package: apache2
Architecture: amd64
Version: 2.4.48-3.1ubuntu3
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), init-system-helpers (>= 1.54~)
Depends: apache2-bin (= 2.4.48-3.1ubuntu3), apache2-data (= 2.4.48-3.1ubuntu3), apache2-utils (= 2.4.48-3.1ubuntu3), 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.48-3.1ubuntu3_amd64.deb
Size: 97986
MD5sum: 62a07cbe17595f94fc22713426164748
SHA1: 9f9a02b16642e3a352a7a43ee9a2500bc5a856c3
SHA256: 824afd4881a3a695672ea544c3197da8b973b1abee86a30cdeffab26ee04941d
SHA512: 98fb7135c3fcd7eff2e98c2ff398c21d466c26bd35d025ab411226463377bf0e945fb64878795def0005f4330df4a13863cdfa8b95ff48c7243554cff5f1d38f
Homepage: https://httpd.apache.org/
Description-en: Apache HTTP Server
The Apache HTTP Server Project's goal is to build a secure, efficient and
extensible HTTP server as standards-compliant open source software. The
result has long been the number one web server on the Internet.
.
Installing this package results in a full installation, including the
configuration files, init scripts and support scripts.
Description-md5: d02426bc360345e5acd45367716dc35c
Task: lamp-server