How To Install libtime-format-perl on Kali Linux
Introduction
In this tutorial we learn how to install libtime-format-perl on Kali Linux.
What is libtime-format-perl
libtime-format-perl is:
Time::Format creates global pseudovariables which format dates and times, according to formatting codes you pass to them in strings.
The %time formatting codes are designed to be easy to remember and use, and to take up just as many characters as the output time value whenever possible. For example, the four-digit year code is “yyyy”, the three-letter month abbreviation is “Mon”.
The nice thing about having a variable-like interface instead of function calls is that the values can be used inside of strings (as well as outside of strings in ordinary expressions). Dates are frequently used within strings (log messages, output, data records, etc.), so having the ability to interpolate them directly is handy.
There are three methods to install libtime-format-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 libtime-format-perl Using apt-get
Update apt database with apt-get using the following command.
sudo apt-get updateAfter updating apt database, We can install libtime-format-perl using apt-get by running the following command:
sudo apt-get -y install libtime-format-perlInstall libtime-format-perl Using apt
Update apt database with apt using the following command.
sudo apt updateAfter updating apt database, We can install libtime-format-perl using apt by running the following command:
sudo apt -y install libtime-format-perlInstall libtime-format-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 libtime-format-perl using aptitude by running the following command:
sudo aptitude -y install libtime-format-perlHow To Uninstall libtime-format-perl on Kali Linux
To uninstall only the libtime-format-perl package we can use the following command:
sudo apt-get remove libtime-format-perlUninstall libtime-format-perl And Its Dependencies
To uninstall libtime-format-perl and its dependencies that are no longer needed by Kali Linux, we can use the command below:
sudo apt-get -y autoremove libtime-format-perlRemove libtime-format-perl Configurations and Data
To remove libtime-format-perl configuration and data from Kali Linux we can use the following command:
sudo apt-get -y purge libtime-format-perlRemove libtime-format-perl configuration, data, and all of its dependencies
We can use the following command to remove libtime-format-perl configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libtime-format-perlDependencies
libtime-format-perl have the following dependencies:
References
Summary
In this tutorial we learn how to install libtime-format-perl package on Kali Linux using different package management tools: apt, apt-get and aptitude.