How To Install libdate-extract-perl on Debian 10
Introduction
In this tutorial we learn how to install libdate-extract-perl
on Debian 10.
What is libdate-extract-perl
libdate-extract-perl is:
Date::Extract extracts dates from arbitrary strings. It will take an arbitrary block of text, search it for something that looks like a date string, and build a DateTime object out of it.
By design it will produce few false positives. This means it will not catch nearly everything that looks like a date string. So if you have the string “do homework for class 2019” it won’t return a DateTime object with the year set to 2019.
There are three methods to install libdate-extract-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 libdate-extract-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-extract-perl
using apt-get
by running the following command:
sudo apt-get -y install libdate-extract-perl
Install libdate-extract-perl Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install libdate-extract-perl
using apt
by running the following command:
sudo apt -y install libdate-extract-perl
Install libdate-extract-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 libdate-extract-perl
using aptitude
by running the following command:
sudo aptitude -y install libdate-extract-perl
How To Uninstall libdate-extract-perl on Debian 10
To uninstall only the libdate-extract-perl
package we can use the following command:
sudo apt-get remove libdate-extract-perl
Uninstall libdate-extract-perl And Its Dependencies
To uninstall libdate-extract-perl
and its dependencies that are no longer needed by Debian 10, we can use the command below:
sudo apt-get -y autoremove libdate-extract-perl
Remove libdate-extract-perl Configurations and Data
To remove libdate-extract-perl
configuration and data from Debian 10 we can use the following command:
sudo apt-get -y purge libdate-extract-perl
Remove libdate-extract-perl configuration, data, and all of its dependencies
We can use the following command to remove libdate-extract-perl
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libdate-extract-perl
Dependencies
libdate-extract-perl have the following dependencies:
References
Summary
In this tutorial we learn how to install libdate-extract-perl
package on Debian 10 using different package management tools: apt
, apt-get
and aptitude
.