How To Install libtime-moment-perl on Kali Linux

In this tutorial we learn how to install libtime-moment-perl on Kali Linux. libtime-moment-perl is Perl C/XS module representing date and time of day with UTC offset

Introduction

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

What is libtime-moment-perl

libtime-moment-perl is:

Time::Moment is an immutable object representing a date and time of day with an offset from UTC in the ISO 8601 calendar system.

Time is measured in nanoseconds since 0001-01-01T00Z. Leap seconds are ignored. Time::Moment can represent all epoch integers from -62,135,596,800 to 2,534,02,300,799; this range suffices to measure times to nanosecond precision for any instant that is within 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z.

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

sudo apt-get -y install libtime-moment-perl

Install libtime-moment-perl Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libtime-moment-perl

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

sudo aptitude -y install libtime-moment-perl

How To Uninstall libtime-moment-perl on Kali Linux

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

sudo apt-get remove libtime-moment-perl

Uninstall libtime-moment-perl And Its Dependencies

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

sudo apt-get -y autoremove libtime-moment-perl

Remove libtime-moment-perl Configurations and Data

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

sudo apt-get -y purge libtime-moment-perl

Remove libtime-moment-perl configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libtime-moment-perl

Dependencies

libtime-moment-perl have the following dependencies:

References

Summary

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