How To Install libdatetime-perl on Kali Linux

In this tutorial we learn how to install libdatetime-perl on Kali Linux. libdatetime-perl is module for manipulating dates, times and timestamps

Introduction

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

What is libdatetime-perl

libdatetime-perl is:

DateTime is a Perl module which aims to provide a complete, correct, and easy to use date/time object implementation. It provides an easy way to manipulate dates and times, including date calculations (even addition and subtraction) and provides convenient methods for extracting or modifying portions of any date or time.

This module supports the Olson time zone database, meaning that historical time zone information, and more importantly, daylight saving time rules, can be handled transparently, simply by setting the correct time zone. This is done by using the DateTime::TimeZone module.

There are three methods to install libdatetime-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 libdatetime-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 libdatetime-perl using apt-get by running the following command:

sudo apt-get -y install libdatetime-perl

Install libdatetime-perl Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libdatetime-perl

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

sudo aptitude -y install libdatetime-perl

How To Uninstall libdatetime-perl on Kali Linux

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

sudo apt-get remove libdatetime-perl

Uninstall libdatetime-perl And Its Dependencies

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

sudo apt-get -y autoremove libdatetime-perl

Remove libdatetime-perl Configurations and Data

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

sudo apt-get -y purge libdatetime-perl

Remove libdatetime-perl configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libdatetime-perl

Dependencies

libdatetime-perl have the following dependencies:

References

Summary

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