How To Install libeval-linenumbers-perl on Kali Linux

In this tutorial we learn how to install libeval-linenumbers-perl on Kali Linux. libeval-linenumbers-perl is module to add line numbers to evaled heredoc blocks

Introduction

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

What is libeval-linenumbers-perl

libeval-linenumbers-perl is:

Eval::LineNumbers adds a ‘#line “this-file” 392’ comment to heredoc/hereis text that is going to be eval’ed so that error messages will point back to the right place.

Please note: when you embed \n in your code, it gets expanded in double-quote hereis documents so it will mess up your line numbering. Use \n instead when you can.

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

sudo apt-get -y install libeval-linenumbers-perl

Install libeval-linenumbers-perl Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libeval-linenumbers-perl

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

sudo aptitude -y install libeval-linenumbers-perl

How To Uninstall libeval-linenumbers-perl on Kali Linux

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

sudo apt-get remove libeval-linenumbers-perl

Uninstall libeval-linenumbers-perl And Its Dependencies

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

sudo apt-get -y autoremove libeval-linenumbers-perl

Remove libeval-linenumbers-perl Configurations and Data

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

sudo apt-get -y purge libeval-linenumbers-perl

Remove libeval-linenumbers-perl configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libeval-linenumbers-perl

Dependencies

libeval-linenumbers-perl have the following dependencies:

References

Summary

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