How To Install exim4-base on Ubuntu 18.04

In this tutorial we learn how to install exim4-base on Ubuntu 18.04. exim4-base is support files for all Exim MTA (v4) packages

Introduction

In this tutorial we learn how to install exim4-base on Ubuntu 18.04.

What is exim4-base

exim4-base is:

Exim (v4) is a mail transport agent. exim4-base provides the support files needed by all exim4 daemon packages. You need an additional package containing the main executable. The available packages are:

exim4-daemon-light exim4-daemon-heavy

If you build exim4 from the source package locally, you can also build an exim4-daemon-custom package tailored to your own feature set.

The Debian exim4 packages have their own web page, http://wiki.debian.org/PkgExim4. There is also a Debian-specific FAQ list. Information about the way the Debian packages are configured can be found in /usr/share/doc/exim4-base/README.Debian.gz, which additionally contains information about the way the Debian binary packages are built. The very extensive upstream documentation is shipped in /usr/share/doc/exim4-base/spec.txt.gz. To repeat the debconf-driven configuration process in a standard setup, invoke dpkg-reconfigure exim4-config. There is a Debian-centered mailing list, [email protected]. Please ask Debian-specific questions there, and only write to the upstream exim-users mailing list if you are sure that your question is not Debian-specific. You can find the subscription web page on http://lists.alioth.debian.org/mailman/listinfo/pkg-exim4-users

There are three methods to install exim4-base on Ubuntu 18.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 exim4-base Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install exim4-base

Install exim4-base Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install exim4-base

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

sudo aptitude -y install exim4-base

How To Uninstall exim4-base on Ubuntu 18.04

To uninstall only the exim4-base package we can use the following command:

sudo apt-get remove exim4-base

Uninstall exim4-base And Its Dependencies

To uninstall exim4-base and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove exim4-base

Remove exim4-base Configurations and Data

To remove exim4-base configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge exim4-base

Remove exim4-base configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge exim4-base

References

Summary

In this tutorial we learn how to install exim4-base package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.