How To Install python-pygal on Debian 9

In this tutorial we learn how to install python-pygal on Debian 9. python-pygal is Python svg graph plotting library

Introduction

In this tutorial we learn how to install python-pygal on Debian 9.

What is python-pygal

python-pygal is:

dynamic easy to use SVG charting library, featuring graph types:

  • Bar charts
  • Line charts
  • XY charts
  • Pie charts
  • Radar charts
  • Box plot
  • Dot charts
  • Pyramid charts
  • Funnel charts
  • Gauge charts
  • Worldmap charts
  • Country charts

There are three methods to install python-pygal 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-pygal 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-pygal using apt-get by running the following command:

sudo apt-get -y install python-pygal

Install python-pygal Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install python-pygal using apt by running the following command:

sudo apt -y install python-pygal

Install python-pygal 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-pygal using aptitude by running the following command:

sudo aptitude -y install python-pygal

How To Uninstall python-pygal on Debian 9

To uninstall only the python-pygal package we can use the following command:

sudo apt-get remove python-pygal

Uninstall python-pygal And Its Dependencies

To uninstall python-pygal and its dependencies that are no longer needed by Debian 9, we can use the command below:

sudo apt-get -y autoremove python-pygal

Remove python-pygal Configurations and Data

To remove python-pygal configuration and data from Debian 9 we can use the following command:

sudo apt-get -y purge python-pygal

Remove python-pygal configuration, data, and all of its dependencies

We can use the following command to remove python-pygal configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge python-pygal

Dependencies

python-pygal have the following dependencies:

References

Summary

In this tutorial we learn how to install python-pygal package on Debian 9 using different package management tools: apt, apt-get and aptitude.