How To Install python-parsedatetime on Debian 10
Introduction
In this tutorial we learn how to install python-parsedatetime
on Debian 10.
What is python-parsedatetime
python-parsedatetime is:
parsedatetime is able to parse, for example, the following:
- August 25th, 2008
- 25 Aug 2008
- Aug 25 5pm
- 5pm August 25
- next saturday
- tomorrow
- next thursday at 4pm
- at 4pm
- eod
- tomorrow eod
- eod tuesday
- eoy
- eom
- in 5 minutes
- 5 minutes from now
- 5 hours before now
- 2 hours before noon
- 2 days from tomorrow
This package provides the modules for Python 2.
There are three methods to install python-parsedatetime
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 python-parsedatetime Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install python-parsedatetime
using apt-get
by running the following command:
sudo apt-get -y install python-parsedatetime
Install python-parsedatetime Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install python-parsedatetime
using apt
by running the following command:
sudo apt -y install python-parsedatetime
Install python-parsedatetime 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 python-parsedatetime
using aptitude
by running the following command:
sudo aptitude -y install python-parsedatetime
How To Uninstall python-parsedatetime on Debian 10
To uninstall only the python-parsedatetime
package we can use the following command:
sudo apt-get remove python-parsedatetime
Uninstall python-parsedatetime And Its Dependencies
To uninstall python-parsedatetime
and its dependencies that are no longer needed by Debian 10, we can use the command below:
sudo apt-get -y autoremove python-parsedatetime
Remove python-parsedatetime Configurations and Data
To remove python-parsedatetime
configuration and data from Debian 10 we can use the following command:
sudo apt-get -y purge python-parsedatetime
Remove python-parsedatetime configuration, data, and all of its dependencies
We can use the following command to remove python-parsedatetime
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge python-parsedatetime
Dependencies
python-parsedatetime have the following dependencies:
References
Summary
In this tutorial we learn how to install python-parsedatetime
package on Debian 10 using different package management tools: apt
, apt-get
and aptitude
.