How To Install perl-Hook-LexWrap.noarch on Amazon Linux 2

In this tutorial we learn how to install perl-Hook-LexWrap.noarch in Amazon Linux 2. perl-Hook-LexWrap.noarch is Lexically scoped subroutine wrappers

Introduction

In this tutorial we learn how to install perl-Hook-LexWrap.noarch on Amazon Linux 2.

What is perl-Hook-LexWrap.noarch

Hook both) around an existing subroutine. Unlike other modules that provide this capacity (e.g. Hook Hook `caller’ function works correctly within the wrapped subroutine.

We can use yum to install perl-Hook-LexWrap.noarch on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install perl-Hook-LexWrap.noarch.

Install perl-Hook-LexWrap.noarch on Amazon Linux 2 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install perl-Hook-LexWrap.noarch using yum by running the following command:

sudo yum -y install perl-Hook-LexWrap.noarch

How To Uninstall perl-Hook-LexWrap.noarch on Amazon Linux 2

To uninstall only the perl-Hook-LexWrap.noarch package we can use the following command:

sudo yum remove perl-Hook-LexWrap.noarch

perl-Hook-LexWrap.noarch Package Contents on Amazon Linux 2

/usr/share/doc/perl-Hook-LexWrap-0.24
/usr/share/doc/perl-Hook-LexWrap-0.24/Changes
/usr/share/doc/perl-Hook-LexWrap-0.24/README
/usr/share/doc/perl-Hook-LexWrap-0.24/demo
/usr/share/doc/perl-Hook-LexWrap-0.24/demo/demo_memo.pl
/usr/share/doc/perl-Hook-LexWrap-0.24/demo/demo_temp.pl
/usr/share/man/man3/Hook::LexWrap.3pm.gz
/usr/share/perl5/vendor_perl/Hook
/usr/share/perl5/vendor_perl/Hook/LexWrap.pm

References

Summary

In this tutorial we learn how to install perl-Hook-LexWrap.noarch on Amazon Linux 2 using yum.