How To Install debhelper on Kali Linux
Introduction
In this tutorial we learn how to install debhelper on Kali Linux.
What is debhelper
debhelper is:
A collection of programs that can be used in a debian/rules file to automate common tasks related to building Debian packages. Programs are included to install various files into your package, compress files, fix file permissions, integrate your package with the Debian menu system, debconf, doc-base, etc. Most Debian packages use debhelper as part of their build process.
There are three methods to install debhelper 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 debhelper Using apt-get
Update apt database with apt-get using the following command.
sudo apt-get updateAfter updating apt database, We can install debhelper using apt-get by running the following command:
sudo apt-get -y install debhelperInstall debhelper Using apt
Update apt database with apt using the following command.
sudo apt updateAfter updating apt database, We can install debhelper using apt by running the following command:
sudo apt -y install debhelperInstall debhelper 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 updateAfter updating apt database, We can install debhelper using aptitude by running the following command:
sudo aptitude -y install debhelperHow To Uninstall debhelper on Kali Linux
To uninstall only the debhelper package we can use the following command:
sudo apt-get remove debhelperUninstall debhelper And Its Dependencies
To uninstall debhelper and its dependencies that are no longer needed by Kali Linux, we can use the command below:
sudo apt-get -y autoremove debhelperRemove debhelper Configurations and Data
To remove debhelper configuration and data from Kali Linux we can use the following command:
sudo apt-get -y purge debhelperRemove debhelper configuration, data, and all of its dependencies
We can use the following command to remove debhelper configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge debhelperDependencies
debhelper have the following dependencies:
- autotools-dev
- dh-autoreconf
- dh-strip-nondeterminism
- dpkg
- dpkg-dev
- dwz
- file
- libdpkg-perl
- man-db
- libdebhelper-perl
- po-debconf
- perl
References
Summary
In this tutorial we learn how to install debhelper package on Kali Linux using different package management tools: apt, apt-get and aptitude.