How To Install libfile-monitor-perl on Kali Linux

In this tutorial we learn how to install libfile-monitor-perl on Kali Linux. libfile-monitor-perl is module to monitor file and directory changes

Introduction

In this tutorial we learn how to install libfile-monitor-perl on Kali Linux.

What is libfile-monitor-perl

libfile-monitor-perl is:

File::Monitor provides a simple interface for monitoring one or more files or directories and reporting any changes that are made to them.

It can:

  • Monitor existing files for changes to any of the attributes returned by the stat function
  • Monitor files that don’t yet exist and notify you if they are created
  • Notify when a monitored file is deleted Notify when files are added or removed from a directory

There are three methods to install libfile-monitor-perl 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 libfile-monitor-perl Using apt-get

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

sudo apt-get update

After updating apt database, We can install libfile-monitor-perl using apt-get by running the following command:

sudo apt-get -y install libfile-monitor-perl

Install libfile-monitor-perl Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install libfile-monitor-perl using apt by running the following command:

sudo apt -y install libfile-monitor-perl

Install libfile-monitor-perl 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 libfile-monitor-perl using aptitude by running the following command:

sudo aptitude -y install libfile-monitor-perl

How To Uninstall libfile-monitor-perl on Kali Linux

To uninstall only the libfile-monitor-perl package we can use the following command:

sudo apt-get remove libfile-monitor-perl

Uninstall libfile-monitor-perl And Its Dependencies

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

sudo apt-get -y autoremove libfile-monitor-perl

Remove libfile-monitor-perl Configurations and Data

To remove libfile-monitor-perl configuration and data from Kali Linux we can use the following command:

sudo apt-get -y purge libfile-monitor-perl

Remove libfile-monitor-perl configuration, data, and all of its dependencies

We can use the following command to remove libfile-monitor-perl configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge libfile-monitor-perl

Dependencies

libfile-monitor-perl have the following dependencies:

References

Summary

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