How To Install python-rsvg on Debian 9
Introduction
In this tutorial we learn how to install python-rsvg
on Debian 9.
What is python-rsvg
python-rsvg is:
This package contains a module that allows one to use librsvg to read and write SVG files from Python applications.
There are three methods to install python-rsvg
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 python-rsvg 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-rsvg
using apt-get
by running the following command:
sudo apt-get -y install python-rsvg
Install python-rsvg Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install python-rsvg
using apt
by running the following command:
sudo apt -y install python-rsvg
Install python-rsvg 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-rsvg
using aptitude
by running the following command:
sudo aptitude -y install python-rsvg
How To Uninstall python-rsvg on Debian 9
To uninstall only the python-rsvg
package we can use the following command:
sudo apt-get remove python-rsvg
Uninstall python-rsvg And Its Dependencies
To uninstall python-rsvg
and its dependencies that are no longer needed by Debian 9, we can use the command below:
sudo apt-get -y autoremove python-rsvg
Remove python-rsvg Configurations and Data
To remove python-rsvg
configuration and data from Debian 9 we can use the following command:
sudo apt-get -y purge python-rsvg
Remove python-rsvg configuration, data, and all of its dependencies
We can use the following command to remove python-rsvg
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge python-rsvg
Dependencies
python-rsvg have the following dependencies:
- libatk1.0-0
- libc6
- libcairo2
- libfontconfig1
- libfreetype6
- libgdk-pixbuf2.0-0
- libglib2.0-0
- libgtk2.0-0
- libpango1.0-0
- librsvg2-2
- python
- python
- librsvg2-common
- python-gtk2
References
Summary
In this tutorial we learn how to install python-rsvg
package on Debian 9 using different package management tools: apt
, apt-get
and aptitude
.