How To Install perl-Lexical-Var on Rocky Linux 8

In this tutorial we learn how to install perl-Lexical-Var on Rocky Linux 8. perl-Lexical-Var is Static variables without name space pollution

Introduction

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

What is perl-Lexical-Var

This module implements lexical scoping of static variables and subroutines. Although it can be used directly, it is mainly intended to be infrastructure for modules that manage name spaces.

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

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

sudo dnf -y install perl-Lexical-Var

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

sudo yum -y install perl-Lexical-Var

How To Uninstall perl-Lexical-Var on Rocky Linux 8

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

sudo dnf remove perl-Lexical-Var

perl-Lexical-Var Package Contents on Rocky Linux 8

/usr/lib/.build-id
/usr/lib/.build-id/7d
/usr/lib/.build-id/7d/26abd77db25da0620cdf19c44b232a11f5be03
/usr/lib64/perl5/vendor_perl/Lexical
/usr/lib64/perl5/vendor_perl/Lexical/Sub.pm
/usr/lib64/perl5/vendor_perl/Lexical/Var.pm
/usr/lib64/perl5/vendor_perl/auto/Lexical
/usr/lib64/perl5/vendor_perl/auto/Lexical/Var
/usr/lib64/perl5/vendor_perl/auto/Lexical/Var/Var.so
/usr/share/doc/perl-Lexical-Var
/usr/share/doc/perl-Lexical-Var/Changes
/usr/share/doc/perl-Lexical-Var/README
/usr/share/man/man3/Lexical::Sub.3pm.gz
/usr/share/man/man3/Lexical::Var.3pm.gz

References

Summary

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