How To Install libsub-name-perl on Debian 10

Learn how to install libsub-name-perl on Debian 10 with this tutorial. libsub-name-perl is module for assigning a new name to referenced sub

Introduction

In this tutorial we learn how to install libsub-name-perl on Debian 10.

What is libsub-name-perl

libsub-name-perl is:

Sub::Name has only one function, which is also exported by default:

subname NAME, CODEREF

Assigns a new name to referenced sub. If package specification is omitted in the name, then the current package is used. The return value is the sub.

The name is only used for informative routines (caller, Carp, etc). You won’t be able to actually invoke the sub by the given name. To allow that, you need to do glob-assignment yourself.

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

sudo apt-get -y install libsub-name-perl

Install libsub-name-perl Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libsub-name-perl

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

sudo aptitude -y install libsub-name-perl

How To Uninstall libsub-name-perl on Debian 10

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

sudo apt-get remove libsub-name-perl

Uninstall libsub-name-perl And Its Dependencies

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

sudo apt-get -y autoremove libsub-name-perl

Remove libsub-name-perl Configurations and Data

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

sudo apt-get -y purge libsub-name-perl

Remove libsub-name-perl configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libsub-name-perl

Dependencies

libsub-name-perl have the following dependencies:

References

Summary

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