How To Install perl-MooX-StrictConstructor on Fedora 36
Introduction
In this tutorial we learn how to install perl-MooX-StrictConstructor
on Fedora 36.
What is perl-MooX-StrictConstructor
Simply loading this module makes your constructors “strict”. If your constructor is called with an attribute init argument that your class does not declare, then it dies. This is a great way to catch small typos.
We can use yum
or dnf
to install perl-MooX-StrictConstructor
on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install perl-MooX-StrictConstructor.
Install perl-MooX-StrictConstructor 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-MooX-StrictConstructor
using dnf
by running the following command:
sudo dnf -y install perl-MooX-StrictConstructor
Install perl-MooX-StrictConstructor 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-MooX-StrictConstructor
using yum
by running the following command:
sudo yum -y install perl-MooX-StrictConstructor
How To Uninstall perl-MooX-StrictConstructor on Fedora 36
To uninstall only the perl-MooX-StrictConstructor
package we can use the following command:
sudo dnf remove perl-MooX-StrictConstructor
perl-MooX-StrictConstructor Package Contents on Fedora 36
/usr/share/doc/perl-MooX-StrictConstructor
/usr/share/doc/perl-MooX-StrictConstructor/Changes
/usr/share/licenses/perl-MooX-StrictConstructor
/usr/share/licenses/perl-MooX-StrictConstructor/LICENSE
/usr/share/man/man3/Method::Generate::Constructor::Role::StrictConstructor.3pm.gz
/usr/share/man/man3/MooX::StrictConstructor.3pm.gz
/usr/share/perl5/vendor_perl/Method
/usr/share/perl5/vendor_perl/Method/Generate
/usr/share/perl5/vendor_perl/Method/Generate/Constructor
/usr/share/perl5/vendor_perl/Method/Generate/Constructor/Role
/usr/share/perl5/vendor_perl/Method/Generate/Constructor/Role/StrictConstructor.pm
/usr/share/perl5/vendor_perl/MooX
/usr/share/perl5/vendor_perl/MooX/StrictConstructor.pm
References
Summary
In this tutorial we learn how to install perl-MooX-StrictConstructor
on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).