How To Install perl-Scope-Guard on Rocky Linux 8
Introduction
In this tutorial we learn how to install perl-Scope-Guard
on Rocky Linux 8.
What is perl-Scope-Guard
This module provides a convenient way to perform cleanup or other forms of resource management at the end of a scope. It is particularly useful when dealing with exceptions a subroutine that is guaranteed to be called even if the thread of execution is aborted prematurely. This effectively allows lexically-scoped “promises” to be made that are automatically honored by perl’s garbage collector.
We can use yum
or dnf
to install perl-Scope-Guard
on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install perl-Scope-Guard.
Install perl-Scope-Guard 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-Scope-Guard
using dnf
by running the following command:
sudo dnf -y install perl-Scope-Guard
Install perl-Scope-Guard 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-Scope-Guard
using yum
by running the following command:
sudo yum -y install perl-Scope-Guard
How To Uninstall perl-Scope-Guard on Rocky Linux 8
To uninstall only the perl-Scope-Guard
package we can use the following command:
sudo dnf remove perl-Scope-Guard
perl-Scope-Guard Package Contents on Rocky Linux 8
/usr/share/doc/perl-Scope-Guard
/usr/share/doc/perl-Scope-Guard/Changes
/usr/share/doc/perl-Scope-Guard/README
/usr/share/doc/perl-Scope-Guard/t
/usr/share/doc/perl-Scope-Guard/t/guard.t
/usr/share/doc/perl-Scope-Guard/t/new.t
/usr/share/doc/perl-Scope-Guard/t/scope_guard.t
/usr/share/man/man3/Scope::Guard.3pm.gz
/usr/share/perl5/vendor_perl/Scope
/usr/share/perl5/vendor_perl/Scope/Guard.pm
References
Summary
In this tutorial we learn how to install perl-Scope-Guard
on Rocky Linux 8 using yum and dnf.