How To Install perl-Const-Fast on Rocky Linux 8

In this tutorial we learn how to install perl-Const-Fast on Rocky Linux 8. perl-Const-Fast is Facility for creating read-only scalars, arrays, and hashes

Introduction

In this tutorial we learn how to install perl-Const-Fast on Rocky Linux 8.

What is perl-Const-Fast

This the only function of this module and it is exported by default. It takes a scalar, array or hash left-value as first argument, and a list of one or more values depending on the type of the first argument as the value for the variable. It will set the variable to that value and subsequently make it read-only. Arrays and hashes will be made deeply read-only.

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

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

sudo dnf -y install perl-Const-Fast

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

sudo yum -y install perl-Const-Fast

How To Uninstall perl-Const-Fast on Rocky Linux 8

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

sudo dnf remove perl-Const-Fast

perl-Const-Fast Package Contents on Rocky Linux 8

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

References

Summary

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