How To Install libdatetimex-easy-perl on Debian 9

In this tutorial we learn how to install libdatetimex-easy-perl on Debian 9. libdatetimex-easy-perl is module to parse arbitrary date/time strings

Introduction

In this tutorial we learn how to install libdatetimex-easy-perl on Debian 9.

What is libdatetimex-easy-perl

libdatetimex-easy-perl is:

DateTimeX::Easy is a Perl module designed to make it easy to create DateTime objects from arbitrary strings. It uses a variety of DateTime::Format modules to do the bulk of the parsing, with some tweaks to smooth out the rough edges (mainly concerning timezone detection and selection).

There are three methods to install libdatetimex-easy-perl on Debian 9. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install libdatetimex-easy-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 libdatetimex-easy-perl using apt-get by running the following command:

sudo apt-get -y install libdatetimex-easy-perl

Install libdatetimex-easy-perl Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libdatetimex-easy-perl

Install libdatetimex-easy-perl Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Debian. Update apt database with aptitude using the following command.

sudo aptitude update

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

sudo aptitude -y install libdatetimex-easy-perl

How To Uninstall libdatetimex-easy-perl on Debian 9

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

sudo apt-get remove libdatetimex-easy-perl

Uninstall libdatetimex-easy-perl And Its Dependencies

To uninstall libdatetimex-easy-perl and its dependencies that are no longer needed by Debian 9, we can use the command below:

sudo apt-get -y autoremove libdatetimex-easy-perl

Remove libdatetimex-easy-perl Configurations and Data

To remove libdatetimex-easy-perl configuration and data from Debian 9 we can use the following command:

sudo apt-get -y purge libdatetimex-easy-perl

Remove libdatetimex-easy-perl configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libdatetimex-easy-perl

Dependencies

libdatetimex-easy-perl have the following dependencies:

References

Summary

In this tutorial we learn how to install libdatetimex-easy-perl package on Debian 9 using different package management tools: apt, apt-get and aptitude.