How to Install and Uninstall apache2 Package on Ubuntu 16.04 LTS (Xenial Xerus)

Last updated: May 09,2024

1. Install "apache2" package

This guide let you learn how to install apache2 on Ubuntu 16.04 LTS (Xenial Xerus)

$ sudo apt update $ sudo apt install apache2

2. Uninstall "apache2" package

This guide let you learn how to uninstall apache2 on Ubuntu 16.04 LTS (Xenial Xerus):

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

3. Information about the apache2 package on Ubuntu 16.04 LTS (Xenial Xerus)

Package: apache2
Architecture: amd64
Version: 2.4.18-2ubuntu3.17
Priority: optional
Section: web
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian Apache Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 498
Provides: httpd, httpd-cgi
Pre-Depends: dpkg (>= 1.17.14)
Depends: lsb-base, procps, perl, mime-support, apache2-bin (= 2.4.18-2ubuntu3.17), apache2-utils (>= 2.4), apache2-data (= 2.4.18-2ubuntu3.17)
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.18-2ubuntu3.17_amd64.deb
Size: 86756
MD5sum: 3b096db9d1810332174782f21858a6dd
SHA1: 051a7aead517278bfab9c36206d0ad2da9d17ae2
SHA256: 784800b93c8d43ae538419216bf0dcf6e869e5b9314f9b42ec902af5933c572b
SHA512: 53583d209a02cd659760d1448815668d8600051e12aaad0406e6d8f7c47a840320fb7fe77c863db3ddccf3051b57fbea2f5930043cd344ceb769e722c581678f
Homepage: http://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, mythbuntu-frontend, mythbuntu-desktop, mythbuntu-backend-slave, mythbuntu-backend-master, mythbuntu-backend-master
Supported: 5y

Package: apache2
Priority: optional
Section: web
Installed-Size: 488
Maintainer: Ubuntu Developers
Original-Maintainer: Debian Apache Maintainers
Architecture: amd64
Version: 2.4.18-2ubuntu3
Replaces: apache2.2-bin, apache2.2-common
Provides: httpd, httpd-cgi
Depends: lsb-base, procps, perl, mime-support, apache2-bin (= 2.4.18-2ubuntu3), apache2-utils (>= 2.4), apache2-data (= 2.4.18-2ubuntu3)
Pre-Depends: dpkg (>= 1.17.14)
Recommends: ssl-cert
Suggests: www-browser, apache2-doc, apache2-suexec-pristine | apache2-suexec-custom, ufw
Conflicts: apache2.2-bin, apache2.2-common
Filename: pool/main/a/apache2/apache2_2.4.18-2ubuntu3_amd64.deb
Size: 86646
MD5sum: 1e28c5629fba889cf6a9dd648b1609db
SHA1: d81c42989406499b0927fedcdd4f419d41226041
SHA256: fbc6c37207ede3b38d1abd8bd57fa6165ad1071dba6f48240956802653016167
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
Homepage: http://httpd.apache.org/
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu
Supported: 5y
Task: lamp-server, mythbuntu-frontend, mythbuntu-desktop, mythbuntu-backend-slave, mythbuntu-backend-master, mythbuntu-backend-master