How to install inotify-tools Linux

This tutorial will learn how to install inotify-tools on different Linux distributions. inotify-tools is a Command-line utility for inotify.

What is inotify-tools

inotify-tools is a command-line program for Linux delivering a simple interface to inotify. These programs can be used to watch and act upon filesystem events. In order to install inotify-tools we can use yum or dnf on CentOS 7. In this guidance, we gonna show you how to install it by using both methods, but you will need to choose just one of the methods to install inotify-tools.

How to install inotify-tools on CentOS 7 Using yum

Update the yum database with yum using the following command.

sudo yum makecache

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

sudo yum -y install inotify-tools

How to install inotify-tools on CentOS 7 Using dnf

If you don’t have dnf installed, you can install dnf first. But, first, update the yum database with dnf using the following command.

sudo dnf makecache

After updating the yum database, We can install inotify-tools using dnf by running the following command:

sudo dnf -y install inotify-tools

How To Uninstall inotify-tools on CentOS 7

To uninstall only the inotify-tools package, we can use the following command:

sudo dnf remove inotify-tools

inotify-tools Package Contents on CentOS 7

/usr/bin/inotifywait
/usr/bin/inotifywatch
/usr/lib64/libinotifytools.so.0
/usr/lib64/libinotifytools.so.0.4.1
/usr/share/doc/inotify-tools-3.14
/usr/share/doc/inotify-tools-3.14/AUTHORS
/usr/share/doc/inotify-tools-3.14/COPYING
/usr/share/doc/inotify-tools-3.14/ChangeLog
/usr/share/doc/inotify-tools-3.14/NEWS
/usr/share/doc/inotify-tools-3.14/README
/usr/share/man/man1/inotifywait.1.gz
/usr/share/man/man1/inotifywatch.1.gz

How to Install inotify-tools in Ubuntu 18.04 – 20.04

There are three ways to install inotify-tools Ubuntu 18.04 – 20.04. We can use apt-getapt, and aptitude. In the next steps, we will explain each technique. After that, you can choose one of them.

Install inotify-tools Using apt-get

Update the apt database with apt-get using the following command:

sudo apt-get update

After updating the apt database, We can install inotify-tools using apt-get by running the following command:

sudo apt-get -y install inotify-tools

Install inotify-tools Using apt

Update the apt database with apt using the following command:

sudo apt update

After updating the apt database, We can install inotify-tools using apt by running the following command:

sudo apt -y install inotify-tools

Install inotify-tools Using aptitude

In case you choose aptitude method, you will need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Then, update the apt database with aptitude using the following command:

sudo aptitude update

After updating the apt database, We can install inotify-tools using aptitude by running the following command:

sudo aptitude -y install inotify-tools

How To Uninstall inotify-tools on Ubuntu 18.04 – 20.04

To uninstall only the inotify-tools package, we can use the following command:

sudo apt-get remove inotify-tools

Uninstall inotify-tools And Its Dependencies

To remove inotify-tools and the dependencies that do not need it anymore by Ubuntu 18.04 – 20.04, we can use the command below:

sudo apt-get -y autoremove inotify-tools

Remove inotify-tools Configurations and Data

To remove inotify-tools configuration and data from Ubuntu 18.04 – 20.04, we can use the following command:

sudo apt-get -y purge inotify-tools

Remove inotify-tools configuration, data, and all of its dependencies.

We can use the following command to remove inotify-tools configurations, data, and all of its dependencies. We can use the following command:

sudo apt-get -y autoremove --purge inotify-tools

References

SummaryThis tutorial teaches us how to install inotify-tools on CentOS 7, Ubuntu 18.04, and Ubuntu 20.04 using yum and dnf for CentOS systems and apt-get, apt, and aptitude on Ubuntu systems.

Recent Articles

Related Stories

Stay on op - Ge the daily news in your inbox