How To Install perl-criticism on Fedora 36

In this tutorial we learn how to install perl-criticism in Fedora 36. perl-criticism is Perl pragma to enforce coding standards and best-practices

Introduction

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

What is perl-criticism

This pragma enforces coding standards and promotes best-practices by running your file through Perl production system, this usually isn’t feasible because it adds a lot of overhead at start-up. If you have a separate development environment, you can effectively bypass the criticism pragma by not installing Perl in the production environment. If Perl criticism just fails silently.

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

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

sudo dnf -y install perl-criticism

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

sudo yum -y install perl-criticism

How To Uninstall perl-criticism on Fedora 36

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

sudo dnf remove perl-criticism

perl-criticism Package Contents on Fedora 36

/usr/share/doc/perl-criticism
/usr/share/doc/perl-criticism/Changes
/usr/share/doc/perl-criticism/README
/usr/share/licenses/perl-criticism
/usr/share/licenses/perl-criticism/LICENSE
/usr/share/man/man3/criticism.3pm.gz
/usr/share/perl5/vendor_perl/criticism.pm

References

Summary

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