How To Install perl-Try-Tiny on Rocky Linux 8

In this tutorial we learn how to install perl-Try-Tiny on Rocky Linux 8. perl-Try-Tiny is Minimal try/catch with proper localization of $@

Introduction

In this tutorial we learn how to install perl-Try-Tiny on Rocky Linux 8.

What is perl-Try-Tiny

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 problematic, and the additional catch filtering uses Moose type constraints, which may not be desirable either.

We can use yum or dnf to install perl-Try-Tiny on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install perl-Try-Tiny.

Install perl-Try-Tiny on Rocky Linux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install perl-Try-Tiny

Install perl-Try-Tiny on Rocky Linux 8 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 using yum by running the following command:

sudo yum -y install perl-Try-Tiny

How To Uninstall perl-Try-Tiny on Rocky Linux 8

To uninstall only the perl-Try-Tiny package we can use the following command:

sudo dnf remove perl-Try-Tiny

perl-Try-Tiny Package Contents on Rocky Linux 8

/usr/share/doc/perl-Try-Tiny
/usr/share/doc/perl-Try-Tiny/CONTRIBUTING
/usr/share/doc/perl-Try-Tiny/Changes
/usr/share/doc/perl-Try-Tiny/README
/usr/share/doc/perl-Try-Tiny/t
/usr/share/doc/perl-Try-Tiny/t/00-report-prereqs.dd
/usr/share/doc/perl-Try-Tiny/t/00-report-prereqs.t
/usr/share/doc/perl-Try-Tiny/t/basic.t
/usr/share/doc/perl-Try-Tiny/t/context.t
/usr/share/doc/perl-Try-Tiny/t/erroneous_usage.t
/usr/share/doc/perl-Try-Tiny/t/finally.t
/usr/share/doc/perl-Try-Tiny/t/given_when.t
/usr/share/doc/perl-Try-Tiny/t/global_destruction_forked.t
/usr/share/doc/perl-Try-Tiny/t/global_destruction_load.t
/usr/share/doc/perl-Try-Tiny/t/lib
/usr/share/doc/perl-Try-Tiny/t/lib/TryUser.pm
/usr/share/doc/perl-Try-Tiny/t/named.t
/usr/share/doc/perl-Try-Tiny/t/when.t
/usr/share/doc/perl-Try-Tiny/t/zzz-check-breaks.t
/usr/share/licenses/perl-Try-Tiny
/usr/share/licenses/perl-Try-Tiny/LICENCE
/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 on Rocky Linux 8 using yum and dnf.