How To Install perl-Lexical-Var on Fedora 36

In this tutorial we learn how to install perl-Lexical-Var in Fedora 36. perl-Lexical-Var is Static variables without name space pollution

Introduction

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

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 Fedora 36. 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 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-Lexical-Var using dnf by running the following command:

sudo dnf -y install perl-Lexical-Var

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

sudo yum -y install perl-Lexical-Var

How To Uninstall perl-Lexical-Var on Fedora 36

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 Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/53
/usr/lib/.build-id/53/55b9446b66b6b1fd3a3009728d1a0541bbea7e
/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 Fedora 36 using yum and [dnf]((/fedora/36/dnf/).