How To Install libdata-dump-perl on Kali Linux

In this tutorial we learn how to install libdata-dump-perl on Kali Linux. libdata-dump-perl is Perl module to help dump data structures

Introduction

In this tutorial we learn how to install libdata-dump-perl on Kali Linux.

What is libdata-dump-perl

libdata-dump-perl is:

Data::Dump provides a single function called dump that takes a list of values as its argument and produces a string as its result. The string contains Perl code that, when evaled, produces a deep copy of the original arguments. The string is formatted for easy reading.

If called in void context, the dump is printed on standard error instead of being returned. If you don’t like importing a function that overrides Perl’s not-so-useful builtin, then you can also import the same function as “pp” (the mnemonic for “pretty-print”).

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

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

sudo apt-get update

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

sudo apt-get -y install libdata-dump-perl

Install libdata-dump-perl Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install libdata-dump-perl using apt by running the following command:

sudo apt -y install libdata-dump-perl

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

sudo aptitude -y install libdata-dump-perl

How To Uninstall libdata-dump-perl on Kali Linux

To uninstall only the libdata-dump-perl package we can use the following command:

sudo apt-get remove libdata-dump-perl

Uninstall libdata-dump-perl And Its Dependencies

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

sudo apt-get -y autoremove libdata-dump-perl

Remove libdata-dump-perl Configurations and Data

To remove libdata-dump-perl configuration and data from Kali Linux we can use the following command:

sudo apt-get -y purge libdata-dump-perl

Remove libdata-dump-perl configuration, data, and all of its dependencies

We can use the following command to remove libdata-dump-perl configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge libdata-dump-perl

Dependencies

libdata-dump-perl have the following dependencies:

References

Summary

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