How To Install ghc-graphviz on Fedora 36
Introduction
In this tutorial we learn how to install ghc-graphviz
on Fedora 36.
What is ghc-graphviz
This library provides bindings for the Dot language used by the Graphviz (<http functions to call those programs. Main features of the graphviz library include * Almost complete coverage of all Graphviz attributes and syntax. * Support for specifying clusters. * The ability to use a custom node type. * Functions for running a Graphviz layout tool with all specified output types. * The ability to not only generate but also parse Dot code with two options strict and liberal (in terms of ordering of statements). * Functions to convert FGL graphs and other graph-like data structures to Dot code - including support to group them into clusters - with a high degree of customization by specifying which attributes to use and limited support for the inverse operation. * Round-trip support for passing an FGL graph through Graphviz to augment node and edge labels with positional information, etc.
We can use yum
or dnf
to install ghc-graphviz
on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install ghc-graphviz.
Install ghc-graphviz 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 ghc-graphviz
using dnf
by running the following command:
sudo dnf -y install ghc-graphviz
Install ghc-graphviz 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 ghc-graphviz
using yum
by running the following command:
sudo yum -y install ghc-graphviz
How To Uninstall ghc-graphviz on Fedora 36
To uninstall only the ghc-graphviz
package we can use the following command:
sudo dnf remove ghc-graphviz
ghc-graphviz Package Contents on Fedora 36
/usr/lib/.build-id
/usr/lib/.build-id/60
/usr/lib/.build-id/60/c6af642cce20f9f52e1a2c04d118f127a575fb
/usr/lib64/libHSgraphviz-2999.20.1.0-BU2fpetgNMa8olYwHCzmUz-ghc8.10.5.so
/usr/share/licenses/ghc-graphviz
/usr/share/licenses/ghc-graphviz/LICENSE.md
References
Summary
In this tutorial we learn how to install ghc-graphviz
on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).