How To Install perl-Guard on Fedora 36

In this tutorial we learn how to install perl-Guard in Fedora 36. perl-Guard is Safe cleanup blocks

Introduction

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

What is perl-Guard

This module implements so-called “guards”. A guard is something (usually an object) that “guards” a resource, ensuring that it is cleaned up when expected.

We can use yum or dnf to install perl-Guard on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install perl-Guard.

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

sudo dnf -y install perl-Guard

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

sudo yum -y install perl-Guard

How To Uninstall perl-Guard on Fedora 36

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

sudo dnf remove perl-Guard

perl-Guard Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/4b
/usr/lib/.build-id/4b/59372800aa174edd8771d9b6d17306ef98ccea
/usr/lib64/perl5/vendor_perl/Guard.pm
/usr/lib64/perl5/vendor_perl/auto/Guard
/usr/lib64/perl5/vendor_perl/auto/Guard/Guard.so
/usr/share/doc/perl-Guard
/usr/share/doc/perl-Guard/Changes
/usr/share/doc/perl-Guard/README
/usr/share/licenses/perl-Guard
/usr/share/licenses/perl-Guard/COPYING
/usr/share/man/man3/Guard.3pm.gz

References

Summary

In this tutorial we learn how to install perl-Guard on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).