How To Install libdevel-stacktrace-perl on Ubuntu 18.04

In this tutorial we learn how to install libdevel-stacktrace-perl on Ubuntu 18.04. libdevel-stacktrace-perl is Perl module containing stack trace and related objects

Introduction

In this tutorial we learn how to install libdevel-stacktrace-perl on Ubuntu 18.04.

What is libdevel-stacktrace-perl

libdevel-stacktrace-perl is:

The Devel::StackTrace module contains two classes, Devel::StackTrace and Devel::StackTraceFrame. The goal of this object is to encapsulate the information that can found through using the caller() function, as well as providing a simple interface to this data.

The Devel::StackTrace object contains a set of Devel::StackTraceFrame objects, one for each level of the stack. The frames contain all the data available from caller().

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

sudo apt-get -y install libdevel-stacktrace-perl

Install libdevel-stacktrace-perl Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libdevel-stacktrace-perl

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

sudo aptitude -y install libdevel-stacktrace-perl

How To Uninstall libdevel-stacktrace-perl on Ubuntu 18.04

To uninstall only the libdevel-stacktrace-perl package we can use the following command:

sudo apt-get remove libdevel-stacktrace-perl

Uninstall libdevel-stacktrace-perl And Its Dependencies

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

sudo apt-get -y autoremove libdevel-stacktrace-perl

Remove libdevel-stacktrace-perl Configurations and Data

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

sudo apt-get -y purge libdevel-stacktrace-perl

Remove libdevel-stacktrace-perl configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libdevel-stacktrace-perl

References

Summary

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