How To Install libdevel-simpletrace-perl on Ubuntu 18.04

In this tutorial we learn how to install libdevel-simpletrace-perl on Ubuntu 18.04. libdevel-simpletrace-perl is module to see where your code warns and dies using stack traces

Introduction

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

What is libdevel-simpletrace-perl

libdevel-simpletrace-perl is:

Devel::SimpleTrace is a simple drop-in Perl module that can be used to easily spot the place where a program or a module generates errors. It modifies the warn() and die() functions to replace the standard messages with complete stack traces that indicate how and where the error occurred.

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

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

Install libdevel-simpletrace-perl Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libdevel-simpletrace-perl

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

sudo aptitude -y install libdevel-simpletrace-perl

How To Uninstall libdevel-simpletrace-perl on Ubuntu 18.04

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

sudo apt-get remove libdevel-simpletrace-perl

Uninstall libdevel-simpletrace-perl And Its Dependencies

To uninstall libdevel-simpletrace-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-simpletrace-perl

Remove libdevel-simpletrace-perl Configurations and Data

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

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

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

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

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

References

Summary

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