How To Install dh-dist-zilla on Kali Linux
Introduction
In this tutorial we learn how to install dh-dist-zilla
on Kali Linux.
What is dh-dist-zilla
dh-dist-zilla is:
dh-dist-zilla provides a debhelper sequence addon named ‘dist_zilla’, i.e. you can use it in your project’s debian/rules as “dh $@ –with dist-zilla”.
The intention is to be able to build Debian Perl packages directly from a Dist::Zilla based Perl distributions without generating the CPAN distribution tar-ball manually first. It is analogous to using autoreconf to generate the configure script.
The orig.tar.gz/.xz file must only contain the dist.ini and source files but not the generated files like META.yml, README, etc. If you use dh-dist-zilla, you can use “debian/rules get-orig-source” to generate a conforming upstream tar ball if none is available yet.
There are three methods to install dh-dist-zilla
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 dh-dist-zilla 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-dist-zilla
using apt-get
by running the following command:
sudo apt-get -y install dh-dist-zilla
Install dh-dist-zilla Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install dh-dist-zilla
using apt
by running the following command:
sudo apt -y install dh-dist-zilla
Install dh-dist-zilla 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 dh-dist-zilla
using aptitude
by running the following command:
sudo aptitude -y install dh-dist-zilla
How To Uninstall dh-dist-zilla on Kali Linux
To uninstall only the dh-dist-zilla
package we can use the following command:
sudo apt-get remove dh-dist-zilla
Uninstall dh-dist-zilla And Its Dependencies
To uninstall dh-dist-zilla
and its dependencies that are no longer needed by Kali Linux, we can use the command below:
sudo apt-get -y autoremove dh-dist-zilla
Remove dh-dist-zilla Configurations and Data
To remove dh-dist-zilla
configuration and data from Kali Linux we can use the following command:
sudo apt-get -y purge dh-dist-zilla
Remove dh-dist-zilla configuration, data, and all of its dependencies
We can use the following command to remove dh-dist-zilla
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge dh-dist-zilla
Dependencies
dh-dist-zilla have the following dependencies:
References
Summary
In this tutorial we learn how to install dh-dist-zilla
package on Kali Linux using different package management tools: apt
, apt-get
and aptitude
.