How To Install liblog-contextual-perl on Kali Linux

In this tutorial we learn how to install liblog-contextual-perl on Kali Linux. liblog-contextual-perl is module for simple contextual logging

Introduction

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

What is liblog-contextual-perl

liblog-contextual-perl is:

Log::Contextual is a Perl module that provides an implementation-independent interface for simple data logging. It supports painless switching between any logger that implements the defined interface, either for the entire program (using set_logger) or for a given section of code (using with_logger).

The framework supports many logging levels that are enabled using environment variables (these are, in order of decreasing verbosity: trace, debug, info, warn, error, and fatal).

This package includes simple loggers that can be seamlessly upgraded to more advanced loggers, such as Log::Dispatchouli (see liblog-dispatchouli-perl).

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

sudo apt-get -y install liblog-contextual-perl

Install liblog-contextual-perl Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install liblog-contextual-perl

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

sudo aptitude -y install liblog-contextual-perl

How To Uninstall liblog-contextual-perl on Kali Linux

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

sudo apt-get remove liblog-contextual-perl

Uninstall liblog-contextual-perl And Its Dependencies

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

sudo apt-get -y autoremove liblog-contextual-perl

Remove liblog-contextual-perl Configurations and Data

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

sudo apt-get -y purge liblog-contextual-perl

Remove liblog-contextual-perl configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge liblog-contextual-perl

Dependencies

liblog-contextual-perl have the following dependencies:

References

Summary

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