How To Install perl-MooseX-Traits on Fedora 36

In this tutorial we learn how to install perl-MooseX-Traits in Fedora 36. perl-MooseX-Traits is Automatically apply roles at object creation time

Introduction

In this tutorial we learn how to install perl-MooseX-Traits on Fedora 36.

What is perl-MooseX-Traits

MooseX needed, w/o having to explicitly construct new classes Foo->with_traits(‘Bar’)->new(…);

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

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

sudo dnf -y install perl-MooseX-Traits

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

sudo yum -y install perl-MooseX-Traits

How To Uninstall perl-MooseX-Traits on Fedora 36

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

sudo dnf remove perl-MooseX-Traits

perl-MooseX-Traits Package Contents on Fedora 36

/usr/share/doc/perl-MooseX-Traits
/usr/share/doc/perl-MooseX-Traits/Changes
/usr/share/licenses/perl-MooseX-Traits
/usr/share/licenses/perl-MooseX-Traits/LICENSE
/usr/share/man/man3/MooseX::Traits.3pm.gz
/usr/share/man/man3/MooseX::Traits::Util.3pm.gz
/usr/share/perl5/vendor_perl/MooseX
/usr/share/perl5/vendor_perl/MooseX/Traits
/usr/share/perl5/vendor_perl/MooseX/Traits.pm
/usr/share/perl5/vendor_perl/MooseX/Traits/Util.pm

References

Summary

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