How To Install libformat-human-bytes-perl on Kali Linux
Introduction
In this tutorial we learn how to install libformat-human-bytes-perl on Kali Linux.
What is libformat-human-bytes-perl
libformat-human-bytes-perl is:
Format::Human::Bytes is used to convert bytecount values to human-readable strings. It will return you a printable string which is more readable by humans than a simple bytecount.
For example: use Format::Human::Bytes; $readable = Format::Human::Bytes::base2($bytecount[,$decimals]); It will convert in base 2 format.
$readable = Format::Human::Bytes::base10($bytecount[,$decimals]);
It will convert in base 10 format.
Another way is to create constructor for example:
$fhb = Format::Human::Bytes->new();
$readable = $fhb->base2($bytecount[,$decimals]);
$readable = $fhb->base10($bytecount[,$decimals]);
There are three methods to install libformat-human-bytes-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 libformat-human-bytes-perl Using apt-get
Update apt database with apt-get using the following command.
sudo apt-get updateAfter updating apt database, We can install libformat-human-bytes-perl using apt-get by running the following command:
sudo apt-get -y install libformat-human-bytes-perlInstall libformat-human-bytes-perl Using apt
Update apt database with apt using the following command.
sudo apt updateAfter updating apt database, We can install libformat-human-bytes-perl using apt by running the following command:
sudo apt -y install libformat-human-bytes-perlInstall libformat-human-bytes-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 updateAfter updating apt database, We can install libformat-human-bytes-perl using aptitude by running the following command:
sudo aptitude -y install libformat-human-bytes-perlHow To Uninstall libformat-human-bytes-perl on Kali Linux
To uninstall only the libformat-human-bytes-perl package we can use the following command:
sudo apt-get remove libformat-human-bytes-perlUninstall libformat-human-bytes-perl And Its Dependencies
To uninstall libformat-human-bytes-perl and its dependencies that are no longer needed by Kali Linux, we can use the command below:
sudo apt-get -y autoremove libformat-human-bytes-perlRemove libformat-human-bytes-perl Configurations and Data
To remove libformat-human-bytes-perl configuration and data from Kali Linux we can use the following command:
sudo apt-get -y purge libformat-human-bytes-perlRemove libformat-human-bytes-perl configuration, data, and all of its dependencies
We can use the following command to remove libformat-human-bytes-perl configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libformat-human-bytes-perlDependencies
libformat-human-bytes-perl have the following dependencies:
References
Summary
In this tutorial we learn how to install libformat-human-bytes-perl package on Kali Linux using different package management tools: apt, apt-get and aptitude.