How To Install perl-Readonly on Rocky Linux 8

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

Introduction

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

What is perl-Readonly

Readonly provides a facility for creating non-modifiable scalars, arrays, and hashes. Any attempt to modify a Readonly variable throws an exception. Readonly * Creates scalars, arrays (not lists), and hashes * Creates variables that look and work like native perl variables * Creates global or lexical variables * Works at run-time or compile-time * Works with deep or shallow data structures * Prevents reassignment of Readonly variables

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

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

sudo dnf -y install perl-Readonly

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

sudo yum -y install perl-Readonly

How To Uninstall perl-Readonly on Rocky Linux 8

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

sudo dnf remove perl-Readonly

perl-Readonly Package Contents on Rocky Linux 8

/usr/share/doc/perl-Readonly
/usr/share/doc/perl-Readonly/Changes
/usr/share/doc/perl-Readonly/README.md
/usr/share/doc/perl-Readonly/benchmark.pl
/usr/share/doc/perl-Readonly/t
/usr/share/doc/perl-Readonly/t/bugs
/usr/share/doc/perl-Readonly/t/bugs/001_assign.t
/usr/share/doc/perl-Readonly/t/bugs/007_implicit_undef.t
/usr/share/doc/perl-Readonly/t/general
/usr/share/doc/perl-Readonly/t/general/array.t
/usr/share/doc/perl-Readonly/t/general/clone.t
/usr/share/doc/perl-Readonly/t/general/deepa.t
/usr/share/doc/perl-Readonly/t/general/deeph.t
/usr/share/doc/perl-Readonly/t/general/deeps.t
/usr/share/doc/perl-Readonly/t/general/docs.t
/usr/share/doc/perl-Readonly/t/general/export.t
/usr/share/doc/perl-Readonly/t/general/hash.t
/usr/share/doc/perl-Readonly/t/general/readonly.t
/usr/share/doc/perl-Readonly/t/general/reassign.t
/usr/share/doc/perl-Readonly/t/general/scalar.t
/usr/share/doc/perl-Readonly/t/general/tie.t
/usr/share/licenses/perl-Readonly
/usr/share/licenses/perl-Readonly/LICENSE
/usr/share/man/man3/Readonly.3pm.gz
/usr/share/perl5/vendor_perl/Readonly.pm

References

Summary

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