How To Install dh-make-drupal on Debian 9

In this tutorial we learn how to install dh-make-drupal on Debian 9. dh-make-drupal is Create Debian packages from Drupal modules and themes

Introduction

In this tutorial we learn how to install dh-make-drupal on Debian 9.

What is dh-make-drupal

dh-make-drupal is:

The purpose of this program is to generate Debian packages for any Drupal projects (that is, modules or themes).

Given that Drupal developers publish their work through the main Drupal site (http://drupal.org), this program fetches the information for the latest available versions (for the right Drupal release, and with the specified stability level), and prepares a Debian package from it.

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

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

sudo apt-get update

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

sudo apt-get -y install dh-make-drupal

Install dh-make-drupal Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install dh-make-drupal using apt by running the following command:

sudo apt -y install dh-make-drupal

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

sudo aptitude -y install dh-make-drupal

How To Uninstall dh-make-drupal on Debian 9

To uninstall only the dh-make-drupal package we can use the following command:

sudo apt-get remove dh-make-drupal

Uninstall dh-make-drupal And Its Dependencies

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

sudo apt-get -y autoremove dh-make-drupal

Remove dh-make-drupal Configurations and Data

To remove dh-make-drupal configuration and data from Debian 9 we can use the following command:

sudo apt-get -y purge dh-make-drupal

Remove dh-make-drupal configuration, data, and all of its dependencies

We can use the following command to remove dh-make-drupal configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge dh-make-drupal

Dependencies

dh-make-drupal have the following dependencies:

References

Summary

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