How To Install libdate-manip-perl on Ubuntu 18.04

In this tutorial we learn how to install libdate-manip-perl on Ubuntu 18.04. libdate-manip-perl is module for manipulating dates

Introduction

In this tutorial we learn how to install libdate-manip-perl on Ubuntu 18.04.

What is libdate-manip-perl

libdate-manip-perl is:

Date::Manip is a Perl module that contains a set of routines designed to make any common date/time manipulation easy to do. It aims to make operations like comparing two times, calculating a time a given amount of time from another, or parsing international times simpler.

The focus of Date::Manip has been to be able to do ANY desired date or time operation easily, though not necessarily quickly. There are other modules that can do a small subset of these operations quicker, so if speed is a primary issue, you should look elsewhere.

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

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

sudo apt-get -y install libdate-manip-perl

Install libdate-manip-perl Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libdate-manip-perl

Install libdate-manip-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 Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

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

sudo aptitude -y install libdate-manip-perl

How To Uninstall libdate-manip-perl on Ubuntu 18.04

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

sudo apt-get remove libdate-manip-perl

Uninstall libdate-manip-perl And Its Dependencies

To uninstall libdate-manip-perl and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove libdate-manip-perl

Remove libdate-manip-perl Configurations and Data

To remove libdate-manip-perl configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge libdate-manip-perl

Remove libdate-manip-perl configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libdate-manip-perl

References

Summary

In this tutorial we learn how to install libdate-manip-perl package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.