How To Install inotify-hookable on Kali Linux

In this tutorial we learn how to install inotify-hookable on Kali Linux. inotify-hookable is blocking command-line interface to inotify

Introduction

In this tutorial we learn how to install inotify-hookable on Kali Linux.

What is inotify-hookable

inotify-hookable is:

inotify-hookable is a program that monitor files with Linux inotify. This program accepts options to specify the files to be monitored and the command to run when a file has changed (based in kernel inotify)

inotify-hookable main advantage over inotifywait are:

  • command to run after watch can be specified with an option
  • emacs and vi backup files are ignored by default

Example:

inotify-hookable -f foo.c -c ‘gcc -o foo foo.c’

There are three methods to install inotify-hookable on Kali Linux. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install inotify-hookable Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install inotify-hookable

Install inotify-hookable Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install inotify-hookable

Install inotify-hookable Using aptitude

If you want to follow this method, you might need to install aptitude on Kali Linux first since aptitude is usually not installed by default on Kali Linux. Update apt database with aptitude using the following command.

sudo aptitude update

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

sudo aptitude -y install inotify-hookable

How To Uninstall inotify-hookable on Kali Linux

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

sudo apt-get remove inotify-hookable

Uninstall inotify-hookable And Its Dependencies

To uninstall inotify-hookable and its dependencies that are no longer needed by Kali Linux, we can use the command below:

sudo apt-get -y autoremove inotify-hookable

Remove inotify-hookable Configurations and Data

To remove inotify-hookable configuration and data from Kali Linux we can use the following command:

sudo apt-get -y purge inotify-hookable

Remove inotify-hookable configuration, data, and all of its dependencies

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

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

Dependencies

inotify-hookable have the following dependencies:

References

Summary

In this tutorial we learn how to install inotify-hookable package on Kali Linux using different package management tools: apt, apt-get and aptitude.