How To Install perl-MooseX-NonMoose on AlmaLinux 8

In this tutorial we learn how to install perl-MooseX-NonMoose in AlmaLinux 8. perl-MooseX-NonMoose is Easy subclassing of non-Moose classes

Introduction

In this tutorial we learn how to install perl-MooseX-NonMoose on AlmaLinux 8.

What is perl-MooseX-NonMoose

MooseX Moose, taking care of the annoying details connected with doing this, such as setting up proper inheritance from Moose inlining, at make_immutable time) a constructor that makes sure things like BUILD methods are called. It tries to be as non-intrusive as possible - when this module is used, inheriting from non-Moose classes and inheriting from Moose classes should work identically, aside from the few caveats mentioned below. One of the goals of this module is that including it in a Moose possible, without interfering with classes that only inherit from Moose modules, or even classes that don’t inherit from anything at all.

We can use yum or dnf to install perl-MooseX-NonMoose on AlmaLinux 8. In this tutorial we discuss both methods but you only need to choose one of method to install perl-MooseX-NonMoose.

Install perl-MooseX-NonMoose on AlmaLinux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install perl-MooseX-NonMoose using dnf by running the following command:

sudo dnf -y install perl-MooseX-NonMoose

Install perl-MooseX-NonMoose on AlmaLinux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install perl-MooseX-NonMoose using yum by running the following command:

sudo yum -y install perl-MooseX-NonMoose

How To Uninstall perl-MooseX-NonMoose on AlmaLinux 8

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

sudo dnf remove perl-MooseX-NonMoose

References

Summary

In this tutorial we learn how to install perl-MooseX-NonMoose on AlmaLinux 8 using yum and dnf.