How To Install libtime-clock-perl on Kali Linux

In this tutorial we learn how to install libtime-clock-perl on Kali Linux. libtime-clock-perl is twenty-four hour clock object with nanosecond precision

Introduction

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

What is libtime-clock-perl

libtime-clock-perl is:

A Time::Clock object is a twenty-four hour clock with nanosecond precision and wrap-around. It is a clock only; it has absolutely no concept of dates. Vagaries of date/time such as leap seconds and daylight savings time are unsupported.

When a Time::Clock object hits 23:59:59.999999999 and at least one more nanosecond is added, it will wrap around to 00:00:00.000000000. This works in reverse when time is subtracted.

Time::Clock objects automatically stringify to a user-definable format.

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

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

Install libtime-clock-perl Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libtime-clock-perl

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

sudo aptitude -y install libtime-clock-perl

How To Uninstall libtime-clock-perl on Kali Linux

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

sudo apt-get remove libtime-clock-perl

Uninstall libtime-clock-perl And Its Dependencies

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

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

Remove libtime-clock-perl Configurations and Data

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

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

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

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

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

Dependencies

libtime-clock-perl have the following dependencies:

References

Summary

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