How To Install libpath-iterator-rule-perl on Kali Linux

In this tutorial we learn how to install libpath-iterator-rule-perl on Kali Linux. libpath-iterator-rule-perl is iterative, recursive file finder

Introduction

In this tutorial we learn how to install libpath-iterator-rule-perl on Kali Linux.

What is libpath-iterator-rule-perl

libpath-iterator-rule-perl is:

Path::Iterator::Rule iterates over files and directories to identify ones matching a user-defined set of rules. The API is based heavily on File::Find::Rule, but with more explicit distinction between matching rules and options that influence how directories are searched. A Path::Iterator::Rule object is a collection of rules (match criteria) with methods to add additional criteria. Options that control directory traversal are given as arguments to the method that generates an iterator.

Here is a summary of features for comparison to other file finding modules:

  • provides many “helper” methods for specifying rules
  • offers (lazy) iterator and flattened list interfaces
  • custom rules implemented with callbacks
  • breadth-first (default) or pre- or post-order depth-first searching
  • follows symlinks (by default, but can be disabled)
  • directories visited only once (no infinite loop; can be disabled)
  • doesn’t chdir during operation
  • provides an API for extensions

As a convenience, the PIR module is an empty subclass of this one that is less arduous to type for one-liners.

There are three methods to install libpath-iterator-rule-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 libpath-iterator-rule-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 libpath-iterator-rule-perl using apt-get by running the following command:

sudo apt-get -y install libpath-iterator-rule-perl

Install libpath-iterator-rule-perl Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install libpath-iterator-rule-perl using apt by running the following command:

sudo apt -y install libpath-iterator-rule-perl

Install libpath-iterator-rule-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 libpath-iterator-rule-perl using aptitude by running the following command:

sudo aptitude -y install libpath-iterator-rule-perl

How To Uninstall libpath-iterator-rule-perl on Kali Linux

To uninstall only the libpath-iterator-rule-perl package we can use the following command:

sudo apt-get remove libpath-iterator-rule-perl

Uninstall libpath-iterator-rule-perl And Its Dependencies

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

sudo apt-get -y autoremove libpath-iterator-rule-perl

Remove libpath-iterator-rule-perl Configurations and Data

To remove libpath-iterator-rule-perl configuration and data from Kali Linux we can use the following command:

sudo apt-get -y purge libpath-iterator-rule-perl

Remove libpath-iterator-rule-perl configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libpath-iterator-rule-perl

Dependencies

libpath-iterator-rule-perl have the following dependencies:

References

Summary

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