How To Install perl-Scope-Guard on CentOS 7
Introduction
In this tutorial we learn how to install perl-Scope-Guard
on CentOS 7.
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 constructor takes a reference to 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 7. 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 7 Using yum
Update yum database with yum
using the following command.
After updating yum database, We can install perl-Scope-Guard
using yum
by running the following command:
Install perl-Scope-Guard on CentOS 7 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.
After updating yum database, We can install perl-Scope-Guard
using dnf
by running the following command:
How To Uninstall perl-Scope-Guard on CentOS 7
To uninstall only the perl-Scope-Guard
package we can use the following command:
References
Summary
In this tutorial we learn how to install perl-Scope-Guard
on CentOS 7 using yum
and dnf
.