How To Install perl-MooseX-ConfigFromFile on Rocky Linux 8

In this tutorial we learn how to install perl-MooseX-ConfigFromFile on Rocky Linux 8. perl-MooseX-ConfigFromFile is An abstract Moose role for setting attributes from a configfile

Introduction

In this tutorial we learn how to install perl-MooseX-ConfigFromFile on Rocky Linux 8.

What is perl-MooseX-ConfigFromFile

This is an abstract role which provides an alternate constructor for creating objects using parameters passed in from a configuration file. The actual implementation of reading the configuration file is left to concrete subroles. It declares an attribute ‘configfile’ and a class method ’new_with_config’, and requires that concrete roles derived from it implement the class method ‘get_config_from_file’. Attributes specified directly as arguments to ’new_with_config’ supersede those in the configfile.

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

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

sudo dnf -y install perl-MooseX-ConfigFromFile

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

sudo yum -y install perl-MooseX-ConfigFromFile

How To Uninstall perl-MooseX-ConfigFromFile on Rocky Linux 8

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

sudo dnf remove perl-MooseX-ConfigFromFile

perl-MooseX-ConfigFromFile Package Contents on Rocky Linux 8

/usr/share/doc/perl-MooseX-ConfigFromFile
/usr/share/doc/perl-MooseX-ConfigFromFile/CONTRIBUTING
/usr/share/doc/perl-MooseX-ConfigFromFile/Changes
/usr/share/doc/perl-MooseX-ConfigFromFile/README
/usr/share/doc/perl-MooseX-ConfigFromFile/t
/usr/share/doc/perl-MooseX-ConfigFromFile/t/00-report-prereqs.dd
/usr/share/doc/perl-MooseX-ConfigFromFile/t/00-report-prereqs.t
/usr/share/doc/perl-MooseX-ConfigFromFile/t/01use.t
/usr/share/doc/perl-MooseX-ConfigFromFile/t/02subclass.t
/usr/share/doc/perl-MooseX-ConfigFromFile/t/03configfile_method.t
/usr/share/doc/perl-MooseX-ConfigFromFile/t/04a_getopt.t
/usr/share/doc/perl-MooseX-ConfigFromFile/t/04b_getopt.t
/usr/share/doc/perl-MooseX-ConfigFromFile/t/05_default_sub.t
/usr/share/doc/perl-MooseX-ConfigFromFile/t/zzz-check-breaks.t
/usr/share/licenses/perl-MooseX-ConfigFromFile
/usr/share/licenses/perl-MooseX-ConfigFromFile/LICENSE
/usr/share/man/man3/MooseX::ConfigFromFile.3pm.gz
/usr/share/perl5/vendor_perl/MooseX
/usr/share/perl5/vendor_perl/MooseX/ConfigFromFile.pm

References

Summary

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