How To Install perl-MooseX-Role-Parameterized on CentOS 7

In this tutorial we learn how to install perl-MooseX-Role-Parameterized on CentOS 7. perl-MooseX-Role-Parameterized is Make your roles flexible through parameterization

Introduction

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

What is perl-MooseX-Role-Parameterized

Roles are composable units of behavior. They are useful for factoring out functionality common to many classes from any part of your class hierarchy. (See Moose an introduction to Moose While combining roles affords you a great deal of flexibility, individual roles have very little in the way of configurability. Core Moose provides alias for renaming methods to avoid conflicts, and excludes for ignoring methods you don’t want or need (see Moose excludes). Because roles serve many different masters, they usually provide only the least common denominator of functionality. To empower roles further, more configurability than alias and excludes is required. Perhaps your role needs to know which method to call when it is done. Or what default value to use for its url attribute. Parameterized roles offer exactly this solution.

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

Install perl-MooseX-Role-Parameterized 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-Role-Parameterized using yum by running the following command:

sudo yum -y install perl-MooseX-Role-Parameterized

Install perl-MooseX-Role-Parameterized 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-Role-Parameterized using dnf by running the following command:

sudo dnf -y install perl-MooseX-Role-Parameterized

How To Uninstall perl-MooseX-Role-Parameterized on CentOS 7

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

sudo dnf remove perl-MooseX-Role-Parameterized

References

Summary

In this tutorial we learn how to install perl-MooseX-Role-Parameterized on CentOS 7 using yum and dnf.