How To Install gtk2hs-buildtools on Fedora 36
Introduction
In this tutorial we learn how to install gtk2hs-buildtools
on Fedora 36.
What is gtk2hs-buildtools
This package provides a set of helper programs necessary to build the Gtk2Hs suite of libraries. These tools include a modified c2hs binding tool that is used to generate FFI declarations, a tool to build a type hierarchy that mirrors the C type hierarchy of GObjects found in glib, and a generator for signal declarations that are used to call back from C to Haskell. These tools are not needed to actually run Gtk2Hs programs.
We can use yum
or dnf
to install gtk2hs-buildtools
on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install gtk2hs-buildtools.
Install gtk2hs-buildtools 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 gtk2hs-buildtools
using dnf
by running the following command:
sudo dnf -y install gtk2hs-buildtools
Install gtk2hs-buildtools 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 gtk2hs-buildtools
using yum
by running the following command:
sudo yum -y install gtk2hs-buildtools
How To Uninstall gtk2hs-buildtools on Fedora 36
To uninstall only the gtk2hs-buildtools
package we can use the following command:
sudo dnf remove gtk2hs-buildtools
gtk2hs-buildtools Package Contents on Fedora 36
/usr/bin/gtk2hsC2hs
/usr/bin/gtk2hsHookGenerator
/usr/bin/gtk2hsTypeGen
/usr/lib/.build-id
/usr/lib/.build-id/6c
/usr/lib/.build-id/6c/8fde6e5fa103da53f55103c317fab14066daca
/usr/lib/.build-id/6f
/usr/lib/.build-id/6f/ff9feb75be4c90c610ec4d336d5ff37a488ae0
/usr/lib/.build-id/b6
/usr/lib/.build-id/b6/e5b04a3394561fb188e8a0e186085bae0df6eb
References
Summary
In this tutorial we learn how to install gtk2hs-buildtools
on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).