How To Install perl-MooX-HandlesVia on AlmaLinux 8

In this tutorial we learn how to install perl-MooX-HandlesVia in AlmaLinux 8. perl-MooX-HandlesVia is NativeTrait-like behavior for Moo

Introduction

In this tutorial we learn how to install perl-MooX-HandlesVia on AlmaLinux 8.

What is perl-MooX-HandlesVia

MooX functionality. It provides a means of proxying functionality from an external class to the given attribute. This is most commonly used as a way to emulate ‘Native Trait’ behavior that has become commonplace in Moose code, for which there was no Moo alternative.

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

Install perl-MooX-HandlesVia 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-MooX-HandlesVia using dnf by running the following command:

sudo dnf -y install perl-MooX-HandlesVia

Install perl-MooX-HandlesVia 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-MooX-HandlesVia using yum by running the following command:

sudo yum -y install perl-MooX-HandlesVia

How To Uninstall perl-MooX-HandlesVia on AlmaLinux 8

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

sudo dnf remove perl-MooX-HandlesVia

References

Summary

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