How To Install apache2-utils on Ubuntu 20.04

In this tutorial we learn how to install apache2-utils on Ubuntu 20.04. apache2-utils is Apache HTTP Server (utility programs for web servers) Apache HTTP Server (utility programs for web servers) Apache HTTP Server (utility programs for web servers)

Introduction

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

What is apache2-utils

apache2-utils is:

Provides some add-on programs useful for any web server. These include:

  • ab (Apache benchmark tool)
  • fcgistarter (Start a FastCGI program)
  • logresolve (Resolve IP addresses to hostnames in logfiles)
  • htpasswd (Manipulate basic authentication files)
  • htdigest (Manipulate digest authentication files)
  • htdbm (Manipulate basic authentication files in DBM format, using APR)
  • htcacheclean (Clean up the disk cache)
  • rotatelogs (Periodically stop writing to a logfile and open a new one)
  • split-logfile (Split a single log including multiple vhosts)
  • checkgid (Checks whether the caller can setgid to the specified group)
  • check_forensic (Extract mod_log_forensic output from Apache log files)
  • httxt2dbm (Generate dbm files for use with RewriteMap) Task: lamp-server

Package: apache2-utils Architecture: amd64 Version: 2.4.41-4ubuntu3.3 Multi-Arch: foreign Priority: optional Section: net 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: 392 Depends: libapr1 (>= 1.4.8-2~), libaprutil1 (>= 1.5.0), libc6 (>= 2.14), libcrypt1 (>= 1:4.1.0), libssl1.1 (>= 1.1.0) Filename: pool/main/a/apache2/apache2-utils_2.4.41-4ubuntu3.3_amd64.deb Size: 84048 MD5sum: c1f4b7a95c713355a0aa29f537fdfe6a SHA1: 87df6f3c0ce9371878d26116755078a198cf781e SHA256: 67dcb3846195bcff350f00113fb24866632afcb514bce0c6d1c12683bca20084 SHA512: 4fd19ec72f9e3ad7af8aa00e21fcf7a898e131a5eb465a802c90df21281341bfd3a81075671f351fa2543daab99b93d094379aa183a28a6b23360ed581f43f32 Homepage: https://httpd.apache.org/ Description-en: Apache HTTP Server (utility programs for web servers) Provides some add-on programs useful for any web server. These include:

  • ab (Apache benchmark tool)
  • fcgistarter (Start a FastCGI program)
  • logresolve (Resolve IP addresses to hostnames in logfiles)
  • htpasswd (Manipulate basic authentication files)
  • htdigest (Manipulate digest authentication files)
  • htdbm (Manipulate basic authentication files in DBM format, using APR)
  • htcacheclean (Clean up the disk cache)
  • rotatelogs (Periodically stop writing to a logfile and open a new one)
  • split-logfile (Split a single log including multiple vhosts)
  • checkgid (Checks whether the caller can setgid to the specified group)
  • check_forensic (Extract mod_log_forensic output from Apache log files)
  • httxt2dbm (Generate dbm files for use with RewriteMap) Task: lamp-server

Package: apache2-utils Architecture: amd64 Version: 2.4.41-4ubuntu3 Multi-Arch: foreign Priority: optional Section: net 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: 391 Depends: libapr1 (>= 1.4.8-2~), libaprutil1 (>= 1.5.0), libc6 (>= 2.14), libcrypt1 (>= 1:4.1.0), libssl1.1 (>= 1.1.0) Filename: pool/main/a/apache2/apache2-utils_2.4.41-4ubuntu3_amd64.deb Size: 83300 MD5sum: 9082b4062fded5213b1683425a6f2f56 SHA1: 6391a90746b70e022520c27e686a9605b6012003 SHA256: 37f1dc73edbb2b6f69fa87c6e8bdd8b2fc2028739c463ba668869740faae84fe Homepage: https://httpd.apache.org/ Description-en: Apache HTTP Server (utility programs for web servers) Provides some add-on programs useful for any web server. These include:

  • ab (Apache benchmark tool)
  • fcgistarter (Start a FastCGI program)
  • logresolve (Resolve IP addresses to hostnames in logfiles)
  • htpasswd (Manipulate basic authentication files)
  • htdigest (Manipulate digest authentication files)
  • htdbm (Manipulate basic authentication files in DBM format, using APR)
  • htcacheclean (Clean up the disk cache)
  • rotatelogs (Periodically stop writing to a logfile and open a new one)
  • split-logfile (Split a single log including multiple vhosts)
  • checkgid (Checks whether the caller can setgid to the specified group)
  • check_forensic (Extract mod_log_forensic output from Apache log files)
  • httxt2dbm (Generate dbm files for use with RewriteMap) Task: lamp-server

There are three methods to install apache2-utils 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-utils 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-utils using apt-get by running the following command:

sudo apt-get -y install apache2-utils

Install apache2-utils Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install apache2-utils

Install apache2-utils 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-utils using aptitude by running the following command:

sudo aptitude -y install apache2-utils

How To Uninstall apache2-utils on Ubuntu 20.04

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

sudo apt-get remove apache2-utils

Uninstall apache2-utils And Its Dependencies

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

sudo apt-get -y autoremove apache2-utils

Remove apache2-utils Configurations and Data

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

sudo apt-get -y purge apache2-utils

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

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

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

References

Summary

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