How To Install dehydrated on Debian 9

In this tutorial we learn how to install dehydrated on Debian 9. dehydrated is ACME client implemented in Bash

Introduction

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

What is dehydrated

dehydrated is:

The dehydrated ACME client allows signing certificates with an ACME server, like the one provided by the Let??s Encrypt certificate authority (letsencrypt.org). It is implemented as a relatively simple Bash script, which uses curl to communicate with the ACME server and OpenSSL to deal with keys, sign requests and certificates.

The ACME (Automated Certificate Management Environment) protocol makes it possible to automatically obtain browser-trusted certificate.

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

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

sudo apt-get update

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

sudo apt-get -y install dehydrated

Install dehydrated Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install dehydrated

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

sudo aptitude -y install dehydrated

How To Uninstall dehydrated on Debian 9

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

sudo apt-get remove dehydrated

Uninstall dehydrated And Its Dependencies

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

sudo apt-get -y autoremove dehydrated

Remove dehydrated Configurations and Data

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

sudo apt-get -y purge dehydrated

Remove dehydrated configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge dehydrated

Dependencies

dehydrated have the following dependencies:

References

Summary

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