How To Install perl-Variable-Magic on Fedora 36

In this tutorial we learn how to install perl-Variable-Magic in Fedora 36. 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 Fedora 36.

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

sudo dnf -y install perl-Variable-Magic

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

sudo yum -y install perl-Variable-Magic

How To Uninstall perl-Variable-Magic on Fedora 36

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

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