How To Install libmodule-build-perl on Debian 10

Learn how to install libmodule-build-perl on Debian 10 with this tutorial. libmodule-build-perl is framework for building and installing Perl modules

Introduction

In this tutorial we learn how to install libmodule-build-perl on Debian 10.

What is libmodule-build-perl

libmodule-build-perl is:

Module::Build is a framework for easily building, testing and installing Perl packages. It is meant as a next-generation replacement for ExtUtils::MakeMaker and offers many additional features characteristic of a more modern install system, including simple subclassing for custom build actions.

Because it is written in Pure Perl, it has very few external dependencies. In particular, it allows for installation of packages on systems without ‘make’ and will even work without a shell. Its only prerequisites are modules that are included with perl 5.6.0 and it is core as of perl 5.10.

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

sudo apt-get -y install libmodule-build-perl

Install libmodule-build-perl Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libmodule-build-perl

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

sudo aptitude -y install libmodule-build-perl

How To Uninstall libmodule-build-perl on Debian 10

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

sudo apt-get remove libmodule-build-perl

Uninstall libmodule-build-perl And Its Dependencies

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

sudo apt-get -y autoremove libmodule-build-perl

Remove libmodule-build-perl Configurations and Data

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

sudo apt-get -y purge libmodule-build-perl

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

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

sudo apt-get -y autoremove --purge libmodule-build-perl

Dependencies

libmodule-build-perl have the following dependencies:

References

Summary

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