How To Install liblog-log4perl-perl on Kali Linux

In this tutorial we learn how to install liblog-log4perl-perl on Kali Linux. liblog-log4perl-perl is Perl port of the widely popular log4j logging package

Introduction

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

What is liblog-log4perl-perl

liblog-log4perl-perl is:

Log::Log4perl is a pure Perl port of the widely popular Apache/Jakarta log4j library for Java. In the spirit of log4j, Log::Log4perl addresses the shortcomings of typical ad-hoc or homegrown logging systems by providing three mechanisms to control the amount of data being logged and where it ends up at: * Levels allow you to specify the priority of log messages. Low-priority messages are suppressed when the system’s setting allows for only higher-priority messages. * Categories define which parts of the system you want to enable logging in. Category inheritance allows you to elegantly reuse and override previously defined settings of different parts in the category hierarchy. So, at a central location in your system (either in a configuration file or in the startup code) you may specify which components (classes, functions) of your system should generate logs. * Appenders allow you to choose which output devices the log data is being written to, once it clears the previously listed hurdles.

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

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

Install liblog-log4perl-perl Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install liblog-log4perl-perl

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

sudo aptitude -y install liblog-log4perl-perl

How To Uninstall liblog-log4perl-perl on Kali Linux

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

sudo apt-get remove liblog-log4perl-perl

Uninstall liblog-log4perl-perl And Its Dependencies

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

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

Remove liblog-log4perl-perl Configurations and Data

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

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

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

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

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

Dependencies

liblog-log4perl-perl have the following dependencies:

References

Summary

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