How To Install apache2-data on Ubuntu 20.04

In this tutorial we learn how to install apache2-data on Ubuntu 20.04. apache2-data is Apache HTTP Server (common files) Apache HTTP Server (common files) Apache HTTP Server (common files)

Introduction

In this tutorial we learn how to install apache2-data on Ubuntu 20.04.

What is apache2-data

apache2-data is:

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.

This package contains architecture-independent common files such as icons, error pages and static index files. Task: lamp-server

Package: apache2-data Architecture: all Version: 2.4.41-4ubuntu3.3 Multi-Arch: foreign Priority: optional Section: httpd Source: apache2 Origin: Ubuntu Maintainer: Ubuntu Developers [email protected] Original-Maintainer: Debian Apache Maintainers [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 853 Filename: pool/main/a/apache2/apache2-data_2.4.41-4ubuntu3.3_all.deb Size: 158580 MD5sum: a98f5ae4f4230801f56778f8cd3c3b0f SHA1: f671bbf015025b9c38f9b554c9070fb1c747951c SHA256: 2eaf0d7f5f78b270f8a9e0473a751838112b6f676bc570ac3e453d70296419b6 SHA512: f29ace2f23d14180e2ebbcdafdc46edc237d4b4efcbf4214026b7fea70da3d9c3ab7099fec4736b08b02f03799638b1cc6e6d49ecc9ab3a4234df1cb3a117aa5 Homepage: https://httpd.apache.org/ Description-en: Apache HTTP Server (common files) 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.

This package contains architecture-independent common files such as icons, error pages and static index files. Task: lamp-server

Package: apache2-data Architecture: all Version: 2.4.41-4ubuntu3 Multi-Arch: foreign Priority: optional Section: httpd Source: apache2 Origin: Ubuntu Maintainer: Ubuntu Developers [email protected] Original-Maintainer: Debian Apache Maintainers [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 853 Filename: pool/main/a/apache2/apache2-data_2.4.41-4ubuntu3_all.deb Size: 158572 MD5sum: cdf0ea20d6fd5b12bb8e3bbc3cc2b7c2 SHA1: f211ddaf85b0931f040261a8babe2bd837504258 SHA256: 9d785efb69c343efb1ea3dd886f086505013a63feb70550113fa56af26e4add4 Homepage: https://httpd.apache.org/ Description-en: Apache HTTP Server (common files) 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.

This package contains architecture-independent common files such as icons, error pages and static index files. Task: lamp-server

There are three methods to install apache2-data on Ubuntu 20.04. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install apache2-data Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install apache2-data using apt-get by running the following command:

sudo apt-get -y install apache2-data

Install apache2-data Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install apache2-data using apt by running the following command:

sudo apt -y install apache2-data

Install apache2-data Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install apache2-data using aptitude by running the following command:

sudo aptitude -y install apache2-data

How To Uninstall apache2-data on Ubuntu 20.04

To uninstall only the apache2-data package we can use the following command:

sudo apt-get remove apache2-data

Uninstall apache2-data And Its Dependencies

To uninstall apache2-data and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:

sudo apt-get -y autoremove apache2-data

Remove apache2-data Configurations and Data

To remove apache2-data configuration and data from Ubuntu 20.04 we can use the following command:

sudo apt-get -y purge apache2-data

Remove apache2-data configuration, data, and all of its dependencies

We can use the following command to remove apache2-data configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge apache2-data

References

Summary

In this tutorial we learn how to install apache2-data package on Ubuntu 20.04 using different package management tools: apt, apt-get and aptitude.