How To Install ghc-gtk on Fedora 36

In this tutorial we learn how to install ghc-gtk in Fedora 36. ghc-gtk is Binding to the Gtk+ graphical user interface library

Introduction

In this tutorial we learn how to install ghc-gtk on Fedora 36.

What is ghc-gtk

This is the core library of the Gtk2Hs suite of libraries for Haskell based on Gtk+. Gtk+ is an extensive and mature multi-platform toolkit for creating graphical user interfaces.

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

Install ghc-gtk 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-gtk using dnf by running the following command:

sudo dnf -y install ghc-gtk

Install ghc-gtk 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-gtk using yum by running the following command:

sudo yum -y install ghc-gtk

How To Uninstall ghc-gtk on Fedora 36

To uninstall only the ghc-gtk package we can use the following command:

sudo dnf remove ghc-gtk

ghc-gtk Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/e8
/usr/lib/.build-id/e8/fa1de55bcf715fa480be874f2c80025183d733
/usr/lib64/libHSgtk-0.15.5-F3fl1I3SskAIg3wFdiTIiJ-ghc8.10.5.so
/usr/share/licenses/ghc-gtk
/usr/share/licenses/ghc-gtk/COPYING

References

Summary

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