How To Install inotify-hookable on Debian 10
Introduction
In this tutorial we learn how to install inotify-hookable
on Debian 10.
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 Debian 10. 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 first since aptitude is usually not installed by default on Debian. 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 Debian 10
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 Debian 10, 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 Debian 10 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:
- perl
- libclass-inspector-perl
- libdata-bitmask-perl
- liblinux-inotify2-perl
- liblist-moreutils-perl
- libmoose-perl
- libmoosex-getopt-perl
- libmoosex-types-perl
- libtry-tiny-perl
References
Summary
In this tutorial we learn how to install inotify-hookable
package on Debian 10 using different package management tools: apt
, apt-get
and aptitude
.