How To Install perl-Linux-Inotify2 on CentOS 7

In this tutorial we learn how to install perl-Linux-Inotify2 on CentOS 7. perl-Linux-Inotify2 is Scalable directory/file change notification

Introduction

In this tutorial we learn how to install perl-Linux-Inotify2 on CentOS 7.

What is perl-Linux-Inotify2

This module implements an interface to the Linux 2.6.13+ Inotify file/directory change notification sytem. It has a number of advantages over the Linux - it is portable (Linux - the equivalent of fullname works correctly - it is better documented - it has callback-style interface, which is better suited for integration.

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

Install perl-Linux-Inotify2 on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install perl-Linux-Inotify2 using yum by running the following command:

sudo yum -y install perl-Linux-Inotify2

Install perl-Linux-Inotify2 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 perl-Linux-Inotify2 using dnf by running the following command:

sudo dnf -y install perl-Linux-Inotify2

How To Uninstall perl-Linux-Inotify2 on CentOS 7

To uninstall only the perl-Linux-Inotify2 package we can use the following command:

sudo dnf remove perl-Linux-Inotify2

References

Summary

In this tutorial we learn how to install perl-Linux-Inotify2 on CentOS 7 using yum and dnf.