How To Install libdatetime-format-human-duration-perl on Debian 9

In this tutorial we learn how to install libdatetime-format-human-duration-perl on Debian 9. libdatetime-format-human-duration-perl is Perl module to return a locale-specific string describing a DateTime

Introduction

In this tutorial we learn how to install libdatetime-format-human-duration-perl on Debian 9.

What is libdatetime-format-human-duration-perl

libdatetime-format-human-duration-perl is:

DateTime::Format::Human::Duration returns a locale-specific human-readable string describing a DateTime::Duration object.

For example:

1 second

2 minutes and 3 seconds

3 weeks, 1 day, and 5 seconds

4 years, 1 month, 2 days, 6 minutes, 1 second, and 345000028 nanoseconds

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

sudo apt-get -y install libdatetime-format-human-duration-perl

Install libdatetime-format-human-duration-perl Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libdatetime-format-human-duration-perl

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

sudo aptitude -y install libdatetime-format-human-duration-perl

How To Uninstall libdatetime-format-human-duration-perl on Debian 9

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

sudo apt-get remove libdatetime-format-human-duration-perl

Uninstall libdatetime-format-human-duration-perl And Its Dependencies

To uninstall libdatetime-format-human-duration-perl and its dependencies that are no longer needed by Debian 9, we can use the command below:

sudo apt-get -y autoremove libdatetime-format-human-duration-perl

Remove libdatetime-format-human-duration-perl Configurations and Data

To remove libdatetime-format-human-duration-perl configuration and data from Debian 9 we can use the following command:

sudo apt-get -y purge libdatetime-format-human-duration-perl

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

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

sudo apt-get -y autoremove --purge libdatetime-format-human-duration-perl

Dependencies

libdatetime-format-human-duration-perl have the following dependencies:

References

Summary

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