How To Install graphviz-python3 on Rocky Linux 8

In this tutorial we learn how to install graphviz-python3 on Rocky Linux 8. graphviz-python3 is Python 3 extension for graphviz

Introduction

In this tutorial we learn how to install graphviz-python3 on Rocky Linux 8.

What is graphviz-python3

Python 3 extension for graphviz.

We can use yum or dnf to install graphviz-python3 on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install graphviz-python3.

Install graphviz-python3 on Rocky Linux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install graphviz-python3

Install graphviz-python3 on Rocky Linux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install graphviz-python3

How To Uninstall graphviz-python3 on Rocky Linux 8

To uninstall only the graphviz-python3 package we can use the following command:

sudo dnf remove graphviz-python3

graphviz-python3 Package Contents on Rocky Linux 8

/usr/lib/.build-id
/usr/lib/.build-id/98
/usr/lib/.build-id/98/99fddd373dbe34fc9fbb7d1b5bcddb880657b1
/usr/lib64/python3.6/site-packages/__pycache__
/usr/lib64/python3.6/site-packages/__pycache__/gv.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/__pycache__/gv.cpython-36.pyc
/usr/lib64/python3.6/site-packages/_gv.so
/usr/lib64/python3.6/site-packages/gv.py
/usr/share/man/man3/gv.3python.gz

References

Summary

In this tutorial we learn how to install graphviz-python3 on Rocky Linux 8 using yum and dnf.