How To Install perl-Exception-Class-TryCatch on Rocky Linux 8

In this tutorial we learn how to install perl-Exception-Class-TryCatch on Rocky Linux 8. perl-Exception-Class-TryCatch is Syntactic try/catch sugar for use with Exception

Introduction

In this tutorial we learn how to install perl-Exception-Class-TryCatch on Rocky Linux 8.

What is perl-Exception-Class-TryCatch

Exception Exception objective is to allow users to avoid dealing directly with $@ by ensuring that any exceptions caught in an eval are captured as Exception objects, whether they were thrown objects to begin with or whether the error resulted from die. This means that users may immediately use isa and various Exception

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

Install perl-Exception-Class-TryCatch 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-Exception-Class-TryCatch using dnf by running the following command:

sudo dnf -y install perl-Exception-Class-TryCatch

Install perl-Exception-Class-TryCatch 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-Exception-Class-TryCatch using yum by running the following command:

sudo yum -y install perl-Exception-Class-TryCatch

How To Uninstall perl-Exception-Class-TryCatch on Rocky Linux 8

To uninstall only the perl-Exception-Class-TryCatch package we can use the following command:

sudo dnf remove perl-Exception-Class-TryCatch

perl-Exception-Class-TryCatch Package Contents on Rocky Linux 8

/usr/share/doc/perl-Exception-Class-TryCatch
/usr/share/doc/perl-Exception-Class-TryCatch/CONTRIBUTING
/usr/share/doc/perl-Exception-Class-TryCatch/Changes
/usr/share/doc/perl-Exception-Class-TryCatch/LICENSE
/usr/share/doc/perl-Exception-Class-TryCatch/README
/usr/share/man/man3/Exception::Class::TryCatch.3pm.gz
/usr/share/perl5/vendor_perl/Exception
/usr/share/perl5/vendor_perl/Exception/Class
/usr/share/perl5/vendor_perl/Exception/Class/TryCatch.pm

References

Summary

In this tutorial we learn how to install perl-Exception-Class-TryCatch on Rocky Linux 8 using yum and dnf.