How To Install perl-Devel-GlobalDestruction on CentOS 7

In this tutorial we learn how to install perl-Devel-GlobalDestruction on CentOS 7. perl-Devel-GlobalDestruction is Expose PL_dirty, the flag that marks global destruction

Introduction

In this tutorial we learn how to install perl-Devel-GlobalDestruction on CentOS 7.

What is perl-Devel-GlobalDestruction

Perl’s global destruction is a little tricky to deal with with respect to finalizers because it’s not ordered and objects can sometimes disappear. Writing defensive destructors is hard and annoying, and usually if global destruction is happening you only need the destructors that free up non process local resources to actually execute. For these constructors you can avoid the mess by simply bailing out if global destruction is in effect.

We can use yum or dnf to install perl-Devel-GlobalDestruction on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install perl-Devel-GlobalDestruction.

Install perl-Devel-GlobalDestruction on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install perl-Devel-GlobalDestruction using yum by running the following command:

sudo yum -y install perl-Devel-GlobalDestruction

Install perl-Devel-GlobalDestruction 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.

sudo dnf makecache

After updating yum database, We can install perl-Devel-GlobalDestruction using dnf by running the following command:

sudo dnf -y install perl-Devel-GlobalDestruction

How To Uninstall perl-Devel-GlobalDestruction on CentOS 7

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

sudo dnf remove perl-Devel-GlobalDestruction

References

Summary

In this tutorial we learn how to install perl-Devel-GlobalDestruction on CentOS 7 using yum and dnf.