How To Install perl-GraphViz on CentOS 7

In this tutorial we learn how to install perl-GraphViz on CentOS 7. perl-GraphViz is Interface to the GraphViz graphing tool

Introduction

In this tutorial we learn how to install perl-GraphViz on CentOS 7.

What is perl-GraphViz

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 http

We can use yum or dnf to install perl-GraphViz on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install perl-GraphViz.

Install perl-GraphViz on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

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

sudo yum -y install perl-GraphViz

Install perl-GraphViz on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

After updating yum database, We can install perl-GraphViz using dnf by running the following command:

sudo dnf -y install perl-GraphViz

How To Uninstall perl-GraphViz on CentOS 7

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

sudo dnf remove perl-GraphViz

References

Summary

In this tutorial we learn how to install perl-GraphViz on CentOS 7 using yum and dnf.