How To Install debmake on Kali Linux

In this tutorial we learn how to install debmake on Kali Linux. debmake is helper script to make the Debian source package

Introduction

In this tutorial we learn how to install debmake on Kali Linux.

What is debmake

debmake is:

This package helps you to convert an upstream source package (or VCS contents) into the Debian package by adding files required for the Debian source package. The generated debian/rules file uses the new dh command syntax from the debhelper (>=11~) package.

The debmake command invoked in the upstream source tree without any option can generate files which is good enough to create a single arch=any Debian binary package for local use without touching them. The generated files should be edited to make it conform to the Debian policy if the package is to be uploaded to the Debian archive. By adding few options, this command can generate template files for the arbitrary combination of the multi-binary and multi-arch package, etc. This includes making of the rules file for the -dbg package and the control file for the multiarch library package.

This debmake command also scans copyright and license texts in the source files to help crafting the proper DEP-5 compatible debian/copyright file.

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

Install debmake Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install debmake

Install debmake Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install debmake

Install debmake Using aptitude

If you want to follow this method, you might need to install aptitude on Kali Linux first since aptitude is usually not installed by default on Kali Linux. Update apt database with aptitude using the following command.

sudo aptitude update

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

sudo aptitude -y install debmake

How To Uninstall debmake on Kali Linux

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

sudo apt-get remove debmake

Uninstall debmake And Its Dependencies

To uninstall debmake and its dependencies that are no longer needed by Kali Linux, we can use the command below:

sudo apt-get -y autoremove debmake

Remove debmake Configurations and Data

To remove debmake configuration and data from Kali Linux we can use the following command:

sudo apt-get -y purge debmake

Remove debmake configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge debmake

Dependencies

debmake have the following dependencies:

References

Summary

In this tutorial we learn how to install debmake package on Kali Linux using different package management tools: apt, apt-get and aptitude.