How To Install perl-MRO-Compat on Rocky Linux 8

In this tutorial we learn how to install perl-MRO-Compat on Rocky Linux 8. perl-MRO-Compat is Mro

Introduction

In this tutorial we learn how to install perl-MRO-Compat on Rocky Linux 8.

What is perl-MRO-Compat

The “mro” namespace provides several utilities for dealing with method resolution order and method caching in general in Perl 5.9.5 and higher. This module provides those interfaces for earlier versions of Perl (back to 5.6.0 anyways). It is a harmless no-op to use this module on 5.9.5+. That is to say, code which properly uses MRO Perls and 5.9.5+. If you’re writing a piece of software that would like to use the parts of 5.9.5+’s mro compatibility with older Perls, this is the module for you.

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

Install perl-MRO-Compat on Rocky Linux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install perl-MRO-Compat

Install perl-MRO-Compat on Rocky Linux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install perl-MRO-Compat

How To Uninstall perl-MRO-Compat on Rocky Linux 8

To uninstall only the perl-MRO-Compat package we can use the following command:

sudo dnf remove perl-MRO-Compat

perl-MRO-Compat Package Contents on Rocky Linux 8

/usr/share/doc/perl-MRO-Compat
/usr/share/doc/perl-MRO-Compat/Changes
/usr/share/doc/perl-MRO-Compat/README
/usr/share/doc/perl-MRO-Compat/t
/usr/share/doc/perl-MRO-Compat/t/10basic.t
/usr/share/doc/perl-MRO-Compat/t/15pkg_gen.t
/usr/share/doc/perl-MRO-Compat/t/20mros.t
/usr/share/man/man3/MRO::Compat.3pm.gz
/usr/share/perl5/vendor_perl/MRO
/usr/share/perl5/vendor_perl/MRO/Compat.pm

References

Summary

In this tutorial we learn how to install perl-MRO-Compat on Rocky Linux 8 using yum and dnf.