How to Install and Uninstall apache2 Package on Ubuntu 21.04 (Hirsute Hippo)

Last updated: May 09,2024

1. Install "apache2" package

Please follow the step by step instructions below to install apache2 on Ubuntu 21.04 (Hirsute Hippo)

$ sudo apt update $ sudo apt install apache2

2. Uninstall "apache2" package

This guide covers the steps necessary to uninstall apache2 on Ubuntu 21.04 (Hirsute Hippo):

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

3. Information about the apache2 package on Ubuntu 21.04 (Hirsute Hippo)

Package: apache2
Architecture: amd64
Version: 2.4.46-4ubuntu1
Priority: optional
Section: web
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian Apache Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 529
Provides: httpd, httpd-cgi
Pre-Depends: dpkg (>= 1.17.14), init-system-helpers (>= 1.54~)
Depends: apache2-bin (= 2.4.46-4ubuntu1), apache2-data (= 2.4.46-4ubuntu1), apache2-utils (= 2.4.46-4ubuntu1), 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.46-4ubuntu1_amd64.deb
Size: 95880
MD5sum: a30db3e4f154c8a91fa3d945d7fe18dc
SHA1: 12495fdfb1d8868bf1f0e15f1d27f367642a8488
SHA256: 2697c324f37644bbd839c4fc2db5ac8e1959404a4b6dfe47e2a9555a787b777d
SHA512: 7f0fcd37bc8b66c37cb38f0d33d73877764b958b5712fd73d536f805fedee6d5929516a9770b268634291699a1fdf31aabb6ea2dd57a48d79a14c107a00d4bb5
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