How To Install perl-Variable-Magic on Rocky Linux 8

In this tutorial we learn how to install perl-Variable-Magic on Rocky Linux 8. perl-Variable-Magic is Associate user-defined magic to variables from Perl

Introduction

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

What is perl-Variable-Magic

Magic is Perl way of enhancing objects. This mechanism let the user add extra data to any variable and hook syntactical operations (such as access, assignation or destruction) that can be applied to it. With this module, you can add your own magic to any variable without the pain of the C API.

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

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

sudo dnf -y install perl-Variable-Magic

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

sudo yum -y install perl-Variable-Magic

How To Uninstall perl-Variable-Magic on Rocky Linux 8

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

sudo dnf remove perl-Variable-Magic

perl-Variable-Magic Package Contents on Rocky Linux 8

/usr/lib/.build-id
/usr/lib/.build-id/7a
/usr/lib/.build-id/7a/251e471347c5a892b8d40ca2cc679d5ebd5068
/usr/lib64/perl5/vendor_perl/Variable
/usr/lib64/perl5/vendor_perl/Variable/Magic.pm
/usr/lib64/perl5/vendor_perl/auto/Variable
/usr/lib64/perl5/vendor_perl/auto/Variable/Magic
/usr/lib64/perl5/vendor_perl/auto/Variable/Magic/Magic.so
/usr/share/doc/perl-Variable-Magic
/usr/share/doc/perl-Variable-Magic/Changes
/usr/share/doc/perl-Variable-Magic/README
/usr/share/man/man3/Variable::Magic.3pm.gz

References

Summary

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