How To Install libdatetime-format-strptime-perl on Debian 10

Learn how to install libdatetime-format-strptime-perl on Debian 10 with this tutorial. libdatetime-format-strptime-perl is Perl module to parse and format strp and strf time patterns

Introduction

In this tutorial we learn how to install libdatetime-format-strptime-perl on Debian 10.

What is libdatetime-format-strptime-perl

libdatetime-format-strptime-perl is:

DateTime::Format::Strptime implements most of strptime(3), the POSIX function that is the reverse of strftime(3), for DateTime. While strftime takes a DateTime and a pattern and returns a string, strptime takes a string and a pattern and returns the DateTime object associated.

There are three methods to install libdatetime-format-strptime-perl on Debian 10. 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-strptime-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-strptime-perl using apt-get by running the following command:

sudo apt-get -y install libdatetime-format-strptime-perl

Install libdatetime-format-strptime-perl Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libdatetime-format-strptime-perl

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

sudo aptitude -y install libdatetime-format-strptime-perl

How To Uninstall libdatetime-format-strptime-perl on Debian 10

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

sudo apt-get remove libdatetime-format-strptime-perl

Uninstall libdatetime-format-strptime-perl And Its Dependencies

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

sudo apt-get -y autoremove libdatetime-format-strptime-perl

Remove libdatetime-format-strptime-perl Configurations and Data

To remove libdatetime-format-strptime-perl configuration and data from Debian 10 we can use the following command:

sudo apt-get -y purge libdatetime-format-strptime-perl

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

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

sudo apt-get -y autoremove --purge libdatetime-format-strptime-perl

Dependencies

libdatetime-format-strptime-perl have the following dependencies:

References

Summary

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