How To Install perl-MRO-Compat on CentOS 7
Introduction
In this tutorial we learn how to install perl-MRO-Compat on CentOS 7.
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 both older 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 you want compatibility with older Perls, this is the module for you.
We can use yum or dnf to install perl-MRO-Compat on CentOS 7. 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 CentOS 7 Using yum
Update yum database with yum using the following command.
sudo yum makecache
After updating yum database, We can install perl-MRO-Compat using yum by running the following command:
sudo yum -y install perl-MRO-Compat
Install perl-MRO-Compat 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-MRO-Compat using dnf by running the following command:
sudo dnf -y install perl-MRO-Compat
How To Uninstall perl-MRO-Compat on CentOS 7
To uninstall only the perl-MRO-Compat package we can use the following command:
sudo dnf remove perl-MRO-Compat
References
Summary
In this tutorial we learn how to install perl-MRO-Compat on CentOS 7 using yum and dnf.