How To Install liblog-tracemessages-perl on Ubuntu 18.04

In this tutorial we learn how to install liblog-tracemessages-perl on Ubuntu 18.04. liblog-tracemessages-perl is Perl module to allow for trace messages in Perl code

Introduction

In this tutorial we learn how to install liblog-tracemessages-perl on Ubuntu 18.04.

What is liblog-tracemessages-perl

liblog-tracemessages-perl is:

This is the CPAN Perl module Log::TraceMessages.

This module is a better way of putting ‘hello there’ trace messages in your code. It lets you turn tracing on and off without commenting out trace statements, and provides other useful things like HTML-ified trace messages for CGI scripts and an easy way to trace out data structures using Data::Dumper.

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

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

Install liblog-tracemessages-perl Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install liblog-tracemessages-perl

Install liblog-tracemessages-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 Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

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

sudo aptitude -y install liblog-tracemessages-perl

How To Uninstall liblog-tracemessages-perl on Ubuntu 18.04

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

sudo apt-get remove liblog-tracemessages-perl

Uninstall liblog-tracemessages-perl And Its Dependencies

To uninstall liblog-tracemessages-perl and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

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

Remove liblog-tracemessages-perl Configurations and Data

To remove liblog-tracemessages-perl configuration and data from Ubuntu 18.04 we can use the following command:

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

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

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

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

References

Summary

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