How To Install python-objgraph on Debian 9

In this tutorial we learn how to install python-objgraph on Debian 9. python-objgraph is Module for exploring Python object reference graphs

Introduction

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

What is python-objgraph

python-objgraph is:

objgraph is a module that lets you visually explore Python object graphs.

It can be used for counting and statistics, finding root references responsible for large object trees and export the object reference graphs in graphviz format.

This package contains the Python 2 version of the library.

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

sudo apt-get -y install python-objgraph

Install python-objgraph Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install python-objgraph

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

sudo aptitude -y install python-objgraph

How To Uninstall python-objgraph on Debian 9

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

sudo apt-get remove python-objgraph

Uninstall python-objgraph And Its Dependencies

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

sudo apt-get -y autoremove python-objgraph

Remove python-objgraph Configurations and Data

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

sudo apt-get -y purge python-objgraph

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

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

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

Dependencies

python-objgraph have the following dependencies:

References

Summary

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