How To Install python-css-parser on Debian 10
Introduction
In this tutorial we learn how to install python-css-parser
on Debian 10.
What is python-css-parser
python-css-parser is:
CSS parser provides utilities for parsing, serialising CSS in Python.
It is a fork of the cssutils-1.0.2, and adds general bug fixes and extensions specific to editing and working with ebooks. Other modifications include Python 2.7+ and 3.x support from the same codebase.
This package installs the library for Python 2.
There are three methods to install python-css-parser
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-css-parser 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-css-parser
using apt-get
by running the following command:
sudo apt-get -y install python-css-parser
Install python-css-parser Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install python-css-parser
using apt
by running the following command:
sudo apt -y install python-css-parser
Install python-css-parser 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-css-parser
using aptitude
by running the following command:
sudo aptitude -y install python-css-parser
How To Uninstall python-css-parser on Debian 10
To uninstall only the python-css-parser
package we can use the following command:
sudo apt-get remove python-css-parser
Uninstall python-css-parser And Its Dependencies
To uninstall python-css-parser
and its dependencies that are no longer needed by Debian 10, we can use the command below:
sudo apt-get -y autoremove python-css-parser
Remove python-css-parser Configurations and Data
To remove python-css-parser
configuration and data from Debian 10 we can use the following command:
sudo apt-get -y purge python-css-parser
Remove python-css-parser configuration, data, and all of its dependencies
We can use the following command to remove python-css-parser
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge python-css-parser
Dependencies
python-css-parser have the following dependencies:
References
Summary
In this tutorial we learn how to install python-css-parser
package on Debian 10 using different package management tools: apt
, apt-get
and aptitude
.