How To Install php-pecl-inotify on Fedora 36

In this tutorial we learn how to install php-pecl-inotify in Fedora 36. php-pecl-inotify is Inotify

Introduction

In this tutorial we learn how to install php-pecl-inotify on Fedora 36.

What is php-pecl-inotify

The inotify extension allows to use inotify functions in a PHP script.

We can use yum or dnf to install php-pecl-inotify on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install php-pecl-inotify.

Install php-pecl-inotify 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 php-pecl-inotify using dnf by running the following command:

sudo dnf -y install php-pecl-inotify

Install php-pecl-inotify 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 php-pecl-inotify using yum by running the following command:

sudo yum -y install php-pecl-inotify

How To Uninstall php-pecl-inotify on Fedora 36

To uninstall only the php-pecl-inotify package we can use the following command:

sudo dnf remove php-pecl-inotify

php-pecl-inotify Package Contents on Fedora 36

/etc/php-zts.d/40-inotify.ini
/etc/php.d/40-inotify.ini
/usr/lib/.build-id
/usr/lib/.build-id/31
/usr/lib/.build-id/31/a63cb2141181bed82c14886ea8d3dd5848c3fc
/usr/lib/.build-id/80
/usr/lib/.build-id/80/6233551f78d8384747bf338d5c15282a5a259d
/usr/lib64/php-zts/modules/inotify.so
/usr/lib64/php/modules/inotify.so
/usr/share/doc/pecl/inotify
/usr/share/doc/pecl/inotify/CREDITS
/usr/share/doc/pecl/inotify/EXPERIMENTAL
/usr/share/doc/pecl/inotify/README.md
/usr/share/doc/pecl/inotify/inotify.php
/usr/share/doc/pecl/inotify/tail.php
/usr/share/licenses/php-pecl-inotify
/usr/share/licenses/php-pecl-inotify/LICENSE
/var/lib/php/peclxml/php-pecl-inotify.xml

References

Summary

In this tutorial we learn how to install php-pecl-inotify on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).