How To Install perl-Linux-Inotify2 on Rocky Linux 8

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

Introduction

In this tutorial we learn how to install perl-Linux-Inotify2 on Rocky Linux 8.

What is perl-Linux-Inotify2

This module implements an interface to the Linux 2.6.13+ Inotify file/directory change notification system. It has a number of advantages over the Linux - it is portable (Linux - the equivalent of full name 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 Rocky Linux 8. 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 Rocky Linux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install perl-Linux-Inotify2

Install perl-Linux-Inotify2 on Rocky Linux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install perl-Linux-Inotify2

How To Uninstall perl-Linux-Inotify2 on Rocky Linux 8

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

sudo dnf remove perl-Linux-Inotify2

perl-Linux-Inotify2 Package Contents on Rocky Linux 8

/usr/lib/.build-id
/usr/lib/.build-id/02
/usr/lib/.build-id/02/c6584ea5b4acf283b0369884486d27e9cca7f2
/usr/lib64/perl5/vendor_perl/Linux
/usr/lib64/perl5/vendor_perl/Linux/Inotify2.pm
/usr/lib64/perl5/vendor_perl/auto/Linux
/usr/lib64/perl5/vendor_perl/auto/Linux/Inotify2
/usr/lib64/perl5/vendor_perl/auto/Linux/Inotify2/Inotify2.so
/usr/share/doc/perl-Linux-Inotify2
/usr/share/doc/perl-Linux-Inotify2/Changes
/usr/share/doc/perl-Linux-Inotify2/README
/usr/share/doc/perl-Linux-Inotify2/eg
/usr/share/doc/perl-Linux-Inotify2/eg/event
/usr/share/doc/perl-Linux-Inotify2/eg/simple
/usr/share/licenses/perl-Linux-Inotify2
/usr/share/licenses/perl-Linux-Inotify2/COPYING
/usr/share/man/man3/Linux::Inotify2.3pm.gz

References

Summary

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