How To Install perl-MooseX-Types on AlmaLinux 8

In this tutorial we learn how to install perl-MooseX-Types in AlmaLinux 8. perl-MooseX-Types is Organize your Moose types in libraries

Introduction

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

What is perl-MooseX-Types

The types provided with the Moose man page are by design global. This package helps you to organize and selectively import your own and the built-in types in libraries. As a nice side effect, it catches typos at compile-time too. However, the main reason for this module is to provide an easy way to not have conflicts with your type names, since the internal fully qualified names of the types will be prefixed with the library’s name. This module will also provide you with some helper functions to make it easier to use Moose types in your code.

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

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

sudo dnf -y install perl-MooseX-Types

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

sudo yum -y install perl-MooseX-Types

How To Uninstall perl-MooseX-Types on AlmaLinux 8

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

sudo dnf remove perl-MooseX-Types

References

Summary

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