How To Install gtk2hs-buildtools on CentOS 7

In this tutorial we learn how to install gtk2hs-buildtools on CentOS 7. gtk2hs-buildtools is Tools to build the Gtk2Hs GUI libraries

Introduction

In this tutorial we learn how to install gtk2hs-buildtools on CentOS 7.

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 compile or run Gtk2Hs programs, only to build the gtk2hs libraries themselves.

We can use yum or dnf to install gtk2hs-buildtools on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install gtk2hs-buildtools.

Install gtk2hs-buildtools on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

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

sudo yum -y install gtk2hs-buildtools

Install gtk2hs-buildtools on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

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

sudo dnf -y install gtk2hs-buildtools

How To Uninstall gtk2hs-buildtools on CentOS 7

To uninstall only the gtk2hs-buildtools package we can use the following command:

sudo dnf remove gtk2hs-buildtools

References

Summary

In this tutorial we learn how to install gtk2hs-buildtools on CentOS 7 using yum and dnf.