How To Install proftpd-mod-autohost on Ubuntu 18.04

In this tutorial we learn how to install proftpd-mod-autohost on Ubuntu 18.04. proftpd-mod-autohost is ProFTPD module mod_autohost

Introduction

In this tutorial we learn how to install proftpd-mod-autohost on Ubuntu 18.04.

What is proftpd-mod-autohost

proftpd-mod-autohost is:

The mod_autohost module allows for server configurations to be configured in individual files, and for those configuration to be used in an “on demand” fashion. Rather than loading the configurations into memory when the daemon starts up, the daemon will check the IP address and port being contacted by a connecting client, check in the filesystem for a mod_autohost configuration file for that address/port, dynamically parse the configuration, and insert the configuration into the session’s process space. Thus changes to the configuration are seen whenever a client connects, without requiring a daemon restart. The memory footprint is reduced because proftpd, via mod_autohost, only reads and uses the needed configuration.

There are three methods to install proftpd-mod-autohost 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 proftpd-mod-autohost Using apt-get

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

sudo apt-get update

After updating apt database, We can install proftpd-mod-autohost using apt-get by running the following command:

sudo apt-get -y install proftpd-mod-autohost

Install proftpd-mod-autohost Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install proftpd-mod-autohost using apt by running the following command:

sudo apt -y install proftpd-mod-autohost

Install proftpd-mod-autohost 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 proftpd-mod-autohost using aptitude by running the following command:

sudo aptitude -y install proftpd-mod-autohost

How To Uninstall proftpd-mod-autohost on Ubuntu 18.04

To uninstall only the proftpd-mod-autohost package we can use the following command:

sudo apt-get remove proftpd-mod-autohost

Uninstall proftpd-mod-autohost And Its Dependencies

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

sudo apt-get -y autoremove proftpd-mod-autohost

Remove proftpd-mod-autohost Configurations and Data

To remove proftpd-mod-autohost configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge proftpd-mod-autohost

Remove proftpd-mod-autohost configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge proftpd-mod-autohost

References

Summary

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