How To Install perl-Try-Tiny.noarch on Amazon Linux 2
Introduction
In this tutorial we learn how to install perl-Try-Tiny.noarch on Amazon Linux 2.
What is perl-Try-Tiny.noarch
This module provides bare bones try/catch statements that are designed to minimize common mistakes with eval blocks, and NOTHING else. This is unlike TryCatch, which provides a nice syntax and avoids adding another call stack layer, and supports calling return from the try block to return from the parent subroutine. These extra features come at a cost of a few dependencies, namely Devel and the additional catch filtering uses Moose type constraints, which may not be desirable either.
We can use yum to install perl-Try-Tiny.noarch on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install perl-Try-Tiny.noarch.
Install perl-Try-Tiny.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-Try-Tiny.noarch using yum by running the following command:
sudo yum -y install perl-Try-Tiny.noarch
How To Uninstall perl-Try-Tiny.noarch on Amazon Linux 2
To uninstall only the perl-Try-Tiny.noarch package we can use the following command:
sudo yum remove perl-Try-Tiny.noarch
perl-Try-Tiny.noarch Package Contents on Amazon Linux 2
/usr/share/doc/perl-Try-Tiny-0.12
/usr/share/doc/perl-Try-Tiny-0.12/Changes
/usr/share/doc/perl-Try-Tiny-0.12/t
/usr/share/doc/perl-Try-Tiny-0.12/t/basic.t
/usr/share/doc/perl-Try-Tiny-0.12/t/context.t
/usr/share/doc/perl-Try-Tiny-0.12/t/finally.t
/usr/share/doc/perl-Try-Tiny-0.12/t/given_when.t
/usr/share/doc/perl-Try-Tiny-0.12/t/when.t
/usr/share/man/man3/Try::Tiny.3pm.gz
/usr/share/perl5/vendor_perl/Try
/usr/share/perl5/vendor_perl/Try/Tiny.pm
References
Summary
In this tutorial we learn how to install perl-Try-Tiny.noarch on Amazon Linux 2 using yum.