How To Install libpadwalker-perl on Ubuntu 18.04

In this tutorial we learn how to install libpadwalker-perl on Ubuntu 18.04. libpadwalker-perl is module to inspect and manipulate lexical variables

Introduction

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

What is libpadwalker-perl

libpadwalker-perl is:

PadWalker is a module that allows you to inspect and even modify lexical variables in the current “lexical pad stack.” Perl tracks which variables are accessible and visible in each lexical scope by keeping a separate set of variables for each scope. This module looks for a given variable by traversing that stack, which allows it to alter anything in the stack, even variables not normally accessible in the current scope.

In practise, this module is useful for checking anything defined in the full stack of subroutines that called your function, making it extremely useful for debugging. It is, however, not recommended for use in production code.

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

sudo apt-get -y install libpadwalker-perl

Install libpadwalker-perl Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libpadwalker-perl

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

sudo aptitude -y install libpadwalker-perl

How To Uninstall libpadwalker-perl on Ubuntu 18.04

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

sudo apt-get remove libpadwalker-perl

Uninstall libpadwalker-perl And Its Dependencies

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

sudo apt-get -y autoremove libpadwalker-perl

Remove libpadwalker-perl Configurations and Data

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

sudo apt-get -y purge libpadwalker-perl

Remove libpadwalker-perl configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libpadwalker-perl

References

Summary

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