How To Install liblexical-persistence-perl on Kali Linux

In this tutorial we learn how to install liblexical-persistence-perl on Kali Linux. liblexical-persistence-perl is module for accessing persistent data through lexical variables

Introduction

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

What is liblexical-persistence-perl

liblexical-persistence-perl is:

Lexical::Persistence is a Perl data persistence framework that enables code to access persistent data through what looks like lexical variables. So, instead of passing data around explicitly, you can call functions through the Lexical::Persistence object and just use ordinary variables.

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

sudo apt-get -y install liblexical-persistence-perl

Install liblexical-persistence-perl Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install liblexical-persistence-perl

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

sudo aptitude -y install liblexical-persistence-perl

How To Uninstall liblexical-persistence-perl on Kali Linux

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

sudo apt-get remove liblexical-persistence-perl

Uninstall liblexical-persistence-perl And Its Dependencies

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

sudo apt-get -y autoremove liblexical-persistence-perl

Remove liblexical-persistence-perl Configurations and Data

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

sudo apt-get -y purge liblexical-persistence-perl

Remove liblexical-persistence-perl configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge liblexical-persistence-perl

Dependencies

liblexical-persistence-perl have the following dependencies:

References

Summary

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