How to Install and Uninstall apache2 Package on Ubuntu 24.04 LTS (Noble Numbat)

Last updated: May 09,2024

1. Install "apache2" package

Learn how to install apache2 on Ubuntu 24.04 LTS (Noble Numbat)

$ sudo apt update $ sudo apt install apache2

2. Uninstall "apache2" package

Please follow the guidelines below to uninstall apache2 on Ubuntu 24.04 LTS (Noble Numbat):

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

3. Information about the apache2 package on Ubuntu 24.04 LTS (Noble Numbat)

Package: apache2
Architecture: amd64
Version: 2.4.58-1ubuntu2
Priority: optional
Section: web
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian Apache Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 452
Provides: httpd, httpd-cgi
Pre-Depends: init-system-helpers (>= 1.54~)
Depends: apache2-bin (= 2.4.58-1ubuntu2), apache2-data (= 2.4.58-1ubuntu2), apache2-utils (= 2.4.58-1ubuntu2), media-types, perl:any, procps
Recommends: ssl-cert
Suggests: apache2-doc, apache2-suexec-pristine | apache2-suexec-custom, www-browser, ufw
Filename: pool/main/a/apache2/apache2_2.4.58-1ubuntu2_amd64.deb
Size: 90196
MD5sum: f045f03c8e6bae42c73ef89f267747a3
SHA1: 7b6bd4975edb4c548ffe7078130686bc9c402dd3
SHA256: 62f1866c7b41405dfa4bea9ec395fa5c810a9d5de3b2baebd9f5d00e66ac74fb
SHA512: 987189e5837a38ba5d1d7580e87fd0fc1283907b5856859002c52b968327a93b31d889f9fddac8a9677f84d3d4eae9e612e3caedfde89d207360680c95ee8d31
Homepage: https://httpd.apache.org/
Description: Apache HTTP Server
Description-md5: d02426bc360345e5acd45367716dc35c
Task: lamp-server