How To Install libfilter-perl on Kali Linux

In this tutorial we learn how to install libfilter-perl on Kali Linux. libfilter-perl is Perl source filters

Introduction

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

What is libfilter-perl

libfilter-perl is:

Source filters alter the program text of a module before Perl sees it, much as a C preprocessor alters the source text of a C program before the compiler sees it.

This package contains a number of source filters, including:

exec and sh: pipe the source file through an external command cpp: pipe the source file through the C preprocessor decrypt: example of simple (though weak!) source obfuscation tee: copy filtered source to a file (debugging aid)

A substantial amount of documentation and examples is also included.

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

sudo apt-get -y install libfilter-perl

Install libfilter-perl Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libfilter-perl

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

sudo aptitude -y install libfilter-perl

How To Uninstall libfilter-perl on Kali Linux

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

sudo apt-get remove libfilter-perl

Uninstall libfilter-perl And Its Dependencies

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

sudo apt-get -y autoremove libfilter-perl

Remove libfilter-perl Configurations and Data

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

sudo apt-get -y purge libfilter-perl

Remove libfilter-perl configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libfilter-perl

Dependencies

libfilter-perl have the following dependencies:

References

Summary

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