How To Install libmodule-extract-use-perl on Debian 9

In this tutorial we learn how to install libmodule-extract-use-perl on Debian 9. libmodule-extract-use-perl is Perl module to extract which modules some code uses

Introduction

In this tutorial we learn how to install libmodule-extract-use-perl on Debian 9.

What is libmodule-extract-use-perl

libmodule-extract-use-perl is:

Module::Extract::Use extracts the names of the modules used in a file using a static analysis. It uses PPI (Perl Parsing Interface) to tokenize and extract the file data.

Since this module does not run code, it cannot find dynamic uses of modules, such as eval “require $class”.

There are three methods to install libmodule-extract-use-perl on Debian 9. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install libmodule-extract-use-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 libmodule-extract-use-perl using apt-get by running the following command:

sudo apt-get -y install libmodule-extract-use-perl

Install libmodule-extract-use-perl Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libmodule-extract-use-perl

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

sudo aptitude -y install libmodule-extract-use-perl

How To Uninstall libmodule-extract-use-perl on Debian 9

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

sudo apt-get remove libmodule-extract-use-perl

Uninstall libmodule-extract-use-perl And Its Dependencies

To uninstall libmodule-extract-use-perl and its dependencies that are no longer needed by Debian 9, we can use the command below:

sudo apt-get -y autoremove libmodule-extract-use-perl

Remove libmodule-extract-use-perl Configurations and Data

To remove libmodule-extract-use-perl configuration and data from Debian 9 we can use the following command:

sudo apt-get -y purge libmodule-extract-use-perl

Remove libmodule-extract-use-perl configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libmodule-extract-use-perl

Dependencies

libmodule-extract-use-perl have the following dependencies:

References

Summary

In this tutorial we learn how to install libmodule-extract-use-perl package on Debian 9 using different package management tools: apt, apt-get and aptitude.