How To Install liblog-message-perl on Debian 10

Learn how to install liblog-message-perl on Debian 10 with this tutorial. liblog-message-perl is powerful and flexible message logging mechanism

Introduction

In this tutorial we learn how to install liblog-message-perl on Debian 10.

What is liblog-message-perl

liblog-message-perl is:

Log::Message is a generic message storage mechanism. It allows you to store messages on a stack – either shared or private – and assign meta-data to it. Some meta-data will automatically be added for you, like a timestamp and a stack trace, but some can be filled in by the user, like a tag by which to identify it or group it, and a level at which to handle the message (for example, log it, or die with it)

Log::Message also provides a powerful way of searching through items by regexes on messages, tags and level.

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

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

Install liblog-message-perl Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install liblog-message-perl

Install liblog-message-perl Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Debian. Update apt database with aptitude using the following command.

sudo aptitude update

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

sudo aptitude -y install liblog-message-perl

How To Uninstall liblog-message-perl on Debian 10

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

sudo apt-get remove liblog-message-perl

Uninstall liblog-message-perl And Its Dependencies

To uninstall liblog-message-perl and its dependencies that are no longer needed by Debian 10, we can use the command below:

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

Remove liblog-message-perl Configurations and Data

To remove liblog-message-perl configuration and data from Debian 10 we can use the following command:

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

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

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

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

Dependencies

liblog-message-perl have the following dependencies:

References

Summary

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