How To Install libmoox-role-logger-perl on Kali Linux

In this tutorial we learn how to install libmoox-role-logger-perl on Kali Linux. libmoox-role-logger-perl is provide logging via Log

Introduction

In this tutorial we learn how to install libmoox-role-logger-perl on Kali Linux.

What is libmoox-role-logger-perl

libmoox-role-logger-perl is:

MooX::Role::Logger provides universal logging via Log::Any. The class using this role doesn’t need to know or care about the details of log configuration, implementation or destination.

Use it when you want your module to offer logging capabilities, but don’t know who is going to use your module or what kind of logging they will implement. This role lets you do your part and leaves actual log setup and routing to someone else.

The application that ultimately uses your module can then choose to direct log messages somewhere based on its own needs and configuration with Log::Any::Adapter.

This role is based on Moo so it should work with either Moo or Moose based classes.

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

sudo apt-get -y install libmoox-role-logger-perl

Install libmoox-role-logger-perl Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install libmoox-role-logger-perl using apt by running the following command:

sudo apt -y install libmoox-role-logger-perl

Install libmoox-role-logger-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 libmoox-role-logger-perl using aptitude by running the following command:

sudo aptitude -y install libmoox-role-logger-perl

How To Uninstall libmoox-role-logger-perl on Kali Linux

To uninstall only the libmoox-role-logger-perl package we can use the following command:

sudo apt-get remove libmoox-role-logger-perl

Uninstall libmoox-role-logger-perl And Its Dependencies

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

sudo apt-get -y autoremove libmoox-role-logger-perl

Remove libmoox-role-logger-perl Configurations and Data

To remove libmoox-role-logger-perl configuration and data from Kali Linux we can use the following command:

sudo apt-get -y purge libmoox-role-logger-perl

Remove libmoox-role-logger-perl configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libmoox-role-logger-perl

Dependencies

libmoox-role-logger-perl have the following dependencies:

References

Summary

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