How To Install perl-MooseX-NonMoose on CentOS 7

In this tutorial we learn how to install perl-MooseX-NonMoose on CentOS 7. perl-MooseX-NonMoose is Easy subclassing of non-Moose classes

Introduction

In this tutorial we learn how to install perl-MooseX-NonMoose on CentOS 7.

What is perl-MooseX-NonMoose

MooseX with Moose, taking care of the annoying details connected with doing this, such as setting up proper inheritance from Moose 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 entire application should be 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 CentOS 7. 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 CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

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

sudo yum -y install perl-MooseX-NonMoose

Install perl-MooseX-NonMoose on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

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

sudo dnf -y install perl-MooseX-NonMoose

How To Uninstall perl-MooseX-NonMoose on CentOS 7

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 CentOS 7 using yum and dnf.