How To Install python-inotify.noarch on Amazon Linux 2
Introduction
In this tutorial we learn how to install python-inotify.noarch
on Amazon Linux 2.
What is python-inotify.noarch
This is a Python module for watching filesystems changes. pyinotify can be used for various kind of fs monitoring. pyinotify relies on a recent Linux Kernel feature (merged in kernel 2.6.13) called inotify. inotify is an event-driven notifier, its notifications are exported from kernel space to user space.
We can use yum
to install python-inotify.noarch
on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install python-inotify.noarch.
Install python-inotify.noarch on Amazon Linux 2 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
After updating yum database, We can install python-inotify.noarch
using yum
by running the following command:
sudo yum -y install python-inotify.noarch
How To Uninstall python-inotify.noarch on Amazon Linux 2
To uninstall only the python-inotify.noarch
package we can use the following command:
sudo yum remove python-inotify.noarch
python-inotify.noarch Package Contents on Amazon Linux 2
/usr/bin/pyinotify
/usr/lib/python2.7/site-packages/pyinotify-0.9.4-py2.7.egg-info
/usr/lib/python2.7/site-packages/pyinotify.py
/usr/lib/python2.7/site-packages/pyinotify.pyc
/usr/lib/python2.7/site-packages/pyinotify.pyo
/usr/share/doc/python-inotify-0.9.4
/usr/share/doc/python-inotify-0.9.4/ACKS
/usr/share/doc/python-inotify-0.9.4/COPYING
/usr/share/doc/python-inotify-0.9.4/README.md
References
Summary
In this tutorial we learn how to install python-inotify.noarch
on Amazon Linux 2 using yum.