How To Install perl-Scope-Guard on CentOS 8
Introduction
In this tutorial we learn how to install perl-Scope-Guard on CentOS 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 CentOS 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 CentOS 8 Using yum
Update yum database with yum using the following command.
sudo yum makecache
After updating yum database, We can install perl-Scope-Guard using yum by running the following command:
sudo yum -y install perl-Scope-Guard
Install perl-Scope-Guard on CentOS 8 Using dnf
If you don’t have dnf installed you can install DNF on CentOS 7 first.
Update yum database with dnf using the following command.
sudo dnf makecache
After updating yum database, We can install perl-Scope-Guard using dnf by running the following command:
sudo dnf -y install perl-Scope-Guard
How To Uninstall perl-Scope-Guard on CentOS 8
To uninstall only the perl-Scope-Guard package we can use the following command:
sudo dnf remove perl-Scope-Guard
References
Summary
In this tutorial we learn how to install perl-Scope-Guard on CentOS 8 using yum and dnf.