How To Install libgraphviz-perl on Debian 12

Learn how to install libgraphviz-perl on Debian 12 with this tutorial. libgraphviz-perl is Perl interface to the GraphViz graphing tool

Introduction

In this tutorial we learn how to install libgraphviz-perl on Debian 12.

What is libgraphviz-perl

libgraphviz-perl is:

This module provides an interface to layout and image generation of directed and undirected graphs in a variety of formats (PostScript, PNG, etc.) using the “dot”, “neato”, “twopi”, “circo” and “fdp” programs from the GraphViz project (http://www.graphviz.org/ or http://www.research.att.com/sw/tools/graphviz/).

There are three methods to install libgraphviz-perl on Debian 12. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install libgraphviz-perl Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install libgraphviz-perl using apt-get by running the following command:

sudo apt-get -y install libgraphviz-perl

Install libgraphviz-perl Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libgraphviz-perl

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

sudo aptitude -y install libgraphviz-perl

How To Uninstall libgraphviz-perl on Debian 12

To uninstall only the libgraphviz-perl package we can use the following command:

sudo apt-get remove libgraphviz-perl

Uninstall libgraphviz-perl And Its Dependencies

To uninstall libgraphviz-perl and its dependencies that are no longer needed by Debian 12, we can use the command below:

sudo apt-get -y autoremove libgraphviz-perl

Remove libgraphviz-perl Configurations and Data

To remove libgraphviz-perl configuration and data from Debian 12 we can use the following command:

sudo apt-get -y purge libgraphviz-perl

Remove libgraphviz-perl configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libgraphviz-perl

Dependencies

libgraphviz-perl have the following dependencies:

References

Summary

In this tutorial we learn how to install libgraphviz-perl package on Debian 12 using different package management tools: apt, apt-get and aptitude.