How To Install libre-engine-re2-perl on Kali Linux

In this tutorial we learn how to install libre-engine-re2-perl on Kali Linux. libre-engine-re2-perl is RE2 regex engine

Introduction

In this tutorial we learn how to install libre-engine-re2-perl on Kali Linux.

What is libre-engine-re2-perl

libre-engine-re2-perl is:

re::engine::RE2 replaces perl’s regex engine in a given lexical scope with RE2.

RE2 is a primarily DFA based regexp engine from Google that is very fast at matching large amounts of text. However it does not support look behind and some other Perl regular expression features. See RE2’s syntax wiki page at https://github.com/google/re2/wiki/Syntax for more information.

Fallback to normal Perl regexp is implemented by this module. If RE2 is unable to compile a regexp it will use Perl instead, therefore features not implemented by RE2 don’t suddenly stop working, they will just use Perl’s regexp implementation.

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

sudo apt-get -y install libre-engine-re2-perl

Install libre-engine-re2-perl Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libre-engine-re2-perl

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

sudo aptitude -y install libre-engine-re2-perl

How To Uninstall libre-engine-re2-perl on Kali Linux

To uninstall only the libre-engine-re2-perl package we can use the following command:

sudo apt-get remove libre-engine-re2-perl

Uninstall libre-engine-re2-perl And Its Dependencies

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

sudo apt-get -y autoremove libre-engine-re2-perl

Remove libre-engine-re2-perl Configurations and Data

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

sudo apt-get -y purge libre-engine-re2-perl

Remove libre-engine-re2-perl configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libre-engine-re2-perl

Dependencies

libre-engine-re2-perl have the following dependencies:

References

Summary

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