How to Install and Uninstall apache2 Package on Ubuntu 22.04 LTS (Jammy Jellyfish)

Last updated: November 21,2024

1. Install "apache2" package

This tutorial shows how to install apache2 on Ubuntu 22.04 LTS (Jammy Jellyfish)

$ sudo apt update $ sudo apt install apache2

2. Uninstall "apache2" package

Here is a brief guide to show you how to uninstall apache2 on Ubuntu 22.04 LTS (Jammy Jellyfish):

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

3. Information about the apache2 package on Ubuntu 22.04 LTS (Jammy Jellyfish)

Package: apache2
Architecture: amd64
Version: 2.4.52-1ubuntu4.7
Priority: optional
Section: web
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian Apache Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 533
Provides: httpd, httpd-cgi
Pre-Depends: init-system-helpers (>= 1.54~)
Depends: apache2-bin (= 2.4.52-1ubuntu4.7), apache2-data (= 2.4.52-1ubuntu4.7), apache2-utils (= 2.4.52-1ubuntu4.7), 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
Replaces: apache2.2-bin, apache2.2-common
Filename: pool/main/a/apache2/apache2_2.4.52-1ubuntu4.7_amd64.deb
Size: 97816
MD5sum: 9ff01e27323fe5366842321a14b66539
SHA1: 9c355877b27b2018c8b967f378a63993f1550790
SHA256: d4dd4330aac3632398eb583e4b5b4ae60da02e729f949ca6f6d4df1ef4388cea
SHA512: fa6d0a09c4d5a737e82fad90343b69774acad883c6cb1d6f34a275c2761f5b749b45f849babb9a818d2f62034788899055f7dc76efd96a58401df821c1ffda7d
Homepage: https://httpd.apache.org/
Description: Apache HTTP Server
Description-md5: d02426bc360345e5acd45367716dc35c
Task: lamp-server

Package: apache2
Architecture: amd64
Version: 2.4.52-1ubuntu4
Priority: optional
Section: web
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian Apache Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 532
Provides: httpd, httpd-cgi
Pre-Depends: init-system-helpers (>= 1.54~)
Depends: apache2-bin (= 2.4.52-1ubuntu4), apache2-data (= 2.4.52-1ubuntu4), apache2-utils (= 2.4.52-1ubuntu4), 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
Replaces: apache2.2-bin, apache2.2-common
Filename: pool/main/a/apache2/apache2_2.4.52-1ubuntu4_amd64.deb
Size: 97834
MD5sum: 9a264ccbe2bb24d7ebbe317219162006
SHA1: 21a85e607069db8f9bb51c208254b5e6efa11f96
SHA256: 8db7abada23b7a2221ca7cbd20cc455f8cc2cd69a130d03dc92eb6377de42cb3
SHA512: 483d20cc2df4cd6b2428d74722b10657eb69117414fab296ad3af3ec3d2b7eb7597cc29ea8f0749f3c4f2a144c107fd93e73e322a62763e25e9039103284c9fb
Homepage: https://httpd.apache.org/
Description: Apache HTTP Server
Description-md5: d02426bc360345e5acd45367716dc35c
Task: lamp-server