How To Install graphviz-php on Fedora 36

In this tutorial we learn how to install graphviz-php in Fedora 36. graphviz-php is PHP extension for graphviz

Introduction

In this tutorial we learn how to install graphviz-php on Fedora 36.

What is graphviz-php

PHP extension for graphviz.

We can use yum or dnf to install graphviz-php on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install graphviz-php.

Install graphviz-php on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install graphviz-php

Install graphviz-php on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install graphviz-php

How To Uninstall graphviz-php on Fedora 36

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

sudo dnf remove graphviz-php

graphviz-php Package Contents on Fedora 36

/etc/php.d/40-graphviz.ini
/usr/lib/.build-id
/usr/lib/.build-id/46/6d477de2ef528f38fb2bd8b8b925a7b3d61b94
/usr/lib/.build-id/46/6d477de2ef528f38fb2bd8b8b925a7b3d61b94.1
/usr/lib64/graphviz/php
/usr/lib64/graphviz/php/gv.php
/usr/lib64/graphviz/php/gv.so
/usr/lib64/graphviz/php/libgv_php.so
/usr/lib64/php/modules/gv.so
/usr/share/man/man3/gv.3php.gz
/usr/share/php/gv.php

References

Summary

In this tutorial we learn how to install graphviz-php on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).