How To Install libenv-sanctify-perl on Kali Linux

In this tutorial we learn how to install libenv-sanctify-perl on Kali Linux. libenv-sanctify-perl is Perl module providing lexically scoped environment (%ENV)

Introduction

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

What is libenv-sanctify-perl

libenv-sanctify-perl is:

Env::Sanctify is a module that provides lexically scoped manipulation and sanctification of %ENV. With this module, one can add or alter environment variables, later restoring the environment back either manually or automatically once the object falls out of scope.

This is useful for manipulating the environment that forked processes and sub-processes will inherit.

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

sudo apt-get -y install libenv-sanctify-perl

Install libenv-sanctify-perl Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libenv-sanctify-perl

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

sudo aptitude -y install libenv-sanctify-perl

How To Uninstall libenv-sanctify-perl on Kali Linux

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

sudo apt-get remove libenv-sanctify-perl

Uninstall libenv-sanctify-perl And Its Dependencies

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

sudo apt-get -y autoremove libenv-sanctify-perl

Remove libenv-sanctify-perl Configurations and Data

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

sudo apt-get -y purge libenv-sanctify-perl

Remove libenv-sanctify-perl configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libenv-sanctify-perl

Dependencies

libenv-sanctify-perl have the following dependencies:

References

Summary

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