How To Install ghc-hinotify on CentOS 7

In this tutorial we learn how to install ghc-hinotify on CentOS 7. ghc-hinotify is Haskell binding to INotify

Introduction

In this tutorial we learn how to install ghc-hinotify on CentOS 7.

What is ghc-hinotify

This library provides a wrapper to the Linux Kernel’s inotify feature, allowing applications to subscribe to notifications when a file is accessed or modified.

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

Install ghc-hinotify on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

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

sudo yum -y install ghc-hinotify

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

sudo dnf -y install ghc-hinotify

How To Uninstall ghc-hinotify on CentOS 7

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

sudo dnf remove ghc-hinotify

References

Summary

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