Ways to Install or Uninstall libgraphviz-perl on Ubuntu 22.04

Updated: October 23, 2022

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/). In this guide, I will show you how to install libgraphviz-perl on Ubuntu 22.04.


  • OS: Ubuntu 22.04 or older versions with more than 2GB RAM
  • Privileges: Check that you can run sudo commands.

Prerequisites to install libgraphviz-perl on Ubuntu 22.04

Install libgraphviz-perl Ubuntu 22.04

libgraphviz-perl is one of the popular ways on Ubuntu now so that this tutorial will show you some ways to install it. Choose the one that you think is easy and you can follow.

Install libgraphviz-perl using APT

This is a popular method for installing Ubuntu packages because it’s easy to follow, even if you are a newbie in Linux. Following these steps to install libgraphviz-perl on your Ubuntu.

Step 1: You must update the APT package repository cache before attempting to install, update, or remove any packages. Update the APT database to fetch new packages from Ubuntu. Opening the terminal and executing the following Linux command:

sudo apt-get update

Step 2: Start the package installation on Ubuntu 22.04. After updating, you can install libgraphviz-perl Ubuntu by pasting this command into the terminal and executing it.

sudo apt-get install libgraphviz-perl

Install libgraphviz-perl using Aptitude

Users can manage their installation, upgrade, and removal of packages with Aptitude and view a list of the packages that are currently available. If you haven’t already installed it on Ubuntu, run this command to do so.

sudo apt -y install aptitude

After that, you can now install libgraphviz-perl, just following these steps:

Step 1: Update the APT database to download new packages from Ubuntu. Launching the terminal and entering the following Linux command:

sudo apt-get -y update

Step 2: Install the package on Ubuntu 22.04. You can now install libgraphviz-perl Ubuntu by executing this command in the terminal.

sudo aptitude install libgraphviz-perl

Uninstall libgraphviz-perl on Ubuntu 22.04

Have you ever considered how difficult it is to uninstall an application from Ubuntu? You are mistaken; anyone, not just package administrators, can easily uninstall any program.

You can uninstall libgraphviz-perl Ubuntu by running this command if you installed it using APT or Aptitude.

sudo apt remove --auto-remove libgraphviz-perl

If you want to uninstall libgraphviz-perl and remove its data and dependencies, you can also run the following command:

sudo apt autoremove --purge libgraphviz-perl


In this guide, I showed you ways to install libgraphviz-perl on Ubuntu 22.04 and some ways to uninstall libgraphviz-perl too. If you need any help, don’t hesitate to contact me. I’m very glad to answer them.