How To Install daemontools on Debian 9

In this tutorial we learn how to install daemontools on Debian 9. daemontools is collection of tools for managing UNIX services

Introduction

In this tutorial we learn how to install daemontools on Debian 9.

What is daemontools

daemontools is:

supervise monitors a service. It starts the service and restarts the service if it dies. Setting up a new service is easy: all supervise needs is a directory with a run script that runs the service.

multilog saves error messages to one or more logs. It optionally timestamps each line and, for each log, includes or excludes lines matching specified patterns. It automatically rotates logs to limit the amount of disk space used. If the disk fills up, it pauses and tries again, without losing any data.

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

Install daemontools Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install daemontools

Install daemontools Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install daemontools using apt by running the following command:

sudo apt -y install daemontools

Install daemontools 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 Debian. Update apt database with aptitude using the following command.

sudo aptitude update

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

sudo aptitude -y install daemontools

How To Uninstall daemontools on Debian 9

To uninstall only the daemontools package we can use the following command:

sudo apt-get remove daemontools

Uninstall daemontools And Its Dependencies

To uninstall daemontools and its dependencies that are no longer needed by Debian 9, we can use the command below:

sudo apt-get -y autoremove daemontools

Remove daemontools Configurations and Data

To remove daemontools configuration and data from Debian 9 we can use the following command:

sudo apt-get -y purge daemontools

Remove daemontools configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge daemontools

Dependencies

daemontools have the following dependencies:

References

Summary

In this tutorial we learn how to install daemontools package on Debian 9 using different package management tools: apt, apt-get and aptitude.