How To Install libmoose-perl on Debian 10

Learn how to install libmoose-perl on Debian 10 with this tutorial. libmoose-perl is modern Perl object system framework

Introduction

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

What is libmoose-perl

libmoose-perl is:

Moose is an extension of the Perl 5 object system. The main goal of Moose is to make Perl 5 Object Oriented programming easier, more consistent, and less tedious. With Moose you can think more about what you want to do and less about the mechanics of OOP.

Additionally, Moose is built on top of Class::MOP, which is a metaclass system for Perl 5. This means that Moose not only makes building normal Perl 5 objects better, but it provides the power of metaclass programming as well.

Moose also conveniently manages all attributes (including inherited ones) that are defined, but also provides facilities for properly initializing instance slots, setting defaults where appropriate and performing any necessary type constraint checking or coercion.

More details about the structure of Moose as well as its features can be found in the ever-expanding Moose::Cookbook document.

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

sudo apt-get -y install libmoose-perl

Install libmoose-perl Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libmoose-perl

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

sudo aptitude -y install libmoose-perl

How To Uninstall libmoose-perl on Debian 10

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

sudo apt-get remove libmoose-perl

Uninstall libmoose-perl And Its Dependencies

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

sudo apt-get -y autoremove libmoose-perl

Remove libmoose-perl Configurations and Data

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

sudo apt-get -y purge libmoose-perl

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

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

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

Dependencies

libmoose-perl have the following dependencies:

References

Summary

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