How to Install and Uninstall apache2 Package on Ubuntu 18.04 LTS (Bionic Beaver)

Last updated: January 23,2025

1. Install "apache2" package

Here is a brief guide to show you how to install apache2 on Ubuntu 18.04 LTS (Bionic Beaver)

$ sudo apt update $ sudo apt install apache2

2. Uninstall "apache2" package

Please follow the step by step instructions below to uninstall apache2 on Ubuntu 18.04 LTS (Bionic Beaver):

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

3. Information about the apache2 package on Ubuntu 18.04 LTS (Bionic Beaver)

Package: apache2
Architecture: amd64
Version: 2.4.29-1ubuntu4.25
Priority: optional
Section: web
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian Apache Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 524
Provides: httpd, httpd-cgi
Pre-Depends: dpkg (>= 1.17.14)
Depends: lsb-base, procps, perl, mime-support, apache2-bin (= 2.4.29-1ubuntu4.25), apache2-utils (= 2.4.29-1ubuntu4.25), apache2-data (= 2.4.29-1ubuntu4.25), perl:any
Recommends: ssl-cert
Suggests: www-browser, apache2-doc, apache2-suexec-pristine | apache2-suexec-custom, ufw
Conflicts: apache2.2-bin, apache2.2-common
Replaces: apache2.2-bin, apache2.2-common
Filename: pool/main/a/apache2/apache2_2.4.29-1ubuntu4.25_amd64.deb
Size: 95132
MD5sum: 44c667af1bc8fff8f19b076afadfac6a
SHA1: 1ad427376879cc7c60b69dec7a5968ef3c05ecf3
SHA256: 49ea525e93b584e841098b357687251d2cd603490b638a859cbb70a979920d4a
SHA512: 7c12449f24662459a79f7b0424584b2c1934e57e5c443c7c9ceb59909276b6fd31dbb188dd8336233734a88bd41a7613896c9a55708026c34ee1712064a0bc8a
Homepage: http://httpd.apache.org/
Description: Apache HTTP Server
Description-md5: d02426bc360345e5acd45367716dc35c
Task: lamp-server
Supported: 5y

Package: apache2
Architecture: amd64
Version: 2.4.29-1ubuntu4
Priority: optional
Section: web
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian Apache Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 520
Provides: httpd, httpd-cgi
Pre-Depends: dpkg (>= 1.17.14)
Depends: lsb-base, procps, perl, mime-support, apache2-bin (= 2.4.29-1ubuntu4), apache2-utils (= 2.4.29-1ubuntu4), apache2-data (= 2.4.29-1ubuntu4), perl:any
Recommends: ssl-cert
Suggests: www-browser, apache2-doc, apache2-suexec-pristine | apache2-suexec-custom, ufw
Conflicts: apache2.2-bin, apache2.2-common
Replaces: apache2.2-bin, apache2.2-common
Filename: pool/main/a/apache2/apache2_2.4.29-1ubuntu4_amd64.deb
Size: 95120
MD5sum: a075e1df7aa8b6755df2876a4f15fd21
SHA1: 9f5c0311bcf0c05d16ca09a6f92bf3ef3ba389a5
SHA256: 08919cc69d210c8f98c2d28b6149801885b8bdd1c5ff5e1eb0e41c0a7c50f1fe
Homepage: http://httpd.apache.org/
Description: Apache HTTP Server
Description-md5: d02426bc360345e5acd45367716dc35c
Task: lamp-server
Supported: 5y