How To Install perl-Attribute-Handlers on Fedora 36

In this tutorial we learn how to install perl-Attribute-Handlers in Fedora 36. perl-Attribute-Handlers is Simpler definition of attribute handlers

Introduction

In this tutorial we learn how to install perl-Attribute-Handlers on Fedora 36.

What is perl-Attribute-Handlers

This Perl module, when inherited by a package, allows that package’s class to define attribute handler subroutines for specific attributes. Variables and subroutines subsequently defined in that package, or in packages derived from that package may be given attributes with the same names as the attribute handler subroutines, which will then be called in one of the compilation phases (i.e. in a “BEGIN”, “CHECK”, “INIT”, or “END” block).

We can use yum or dnf to install perl-Attribute-Handlers on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install perl-Attribute-Handlers.

Install perl-Attribute-Handlers on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install perl-Attribute-Handlers

Install perl-Attribute-Handlers on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install perl-Attribute-Handlers

How To Uninstall perl-Attribute-Handlers on Fedora 36

To uninstall only the perl-Attribute-Handlers package we can use the following command:

sudo dnf remove perl-Attribute-Handlers

perl-Attribute-Handlers Package Contents on Fedora 36

/usr/share/man/man3/Attribute::Handlers.3pm.gz
/usr/share/perl5/Attribute
/usr/share/perl5/Attribute/Handlers.pm

References

Summary

In this tutorial we learn how to install perl-Attribute-Handlers on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).