How To Install perl-Error.noarch on Amazon Linux 2

In this tutorial we learn how to install perl-Error.noarch in Amazon Linux 2. perl-Error.noarch is Error/exception handling in an OO-ish way

Introduction

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

What is perl-Error.noarch

The Error package provides two interfaces. Firstly Error provides a procedural interface to exception handling. Secondly Error is a base class for errors/exceptions that can either be thrown, for subsequent catch, or can simply be recorded.

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

Install perl-Error.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-Error.noarch using yum by running the following command:

sudo yum -y install perl-Error.noarch

How To Uninstall perl-Error.noarch on Amazon Linux 2

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

sudo yum remove perl-Error.noarch

perl-Error.noarch Package Contents on Amazon Linux 2

/usr/share/doc/perl-Error-0.17020
/usr/share/doc/perl-Error-0.17020/ChangeLog
/usr/share/doc/perl-Error-0.17020/README
/usr/share/doc/perl-Error-0.17020/examples
/usr/share/doc/perl-Error-0.17020/examples/example.pl
/usr/share/doc/perl-Error-0.17020/examples/next-in-loop
/usr/share/doc/perl-Error-0.17020/examples/next-in-loop/Error.pm-eval.pl
/usr/share/doc/perl-Error-0.17020/examples/next-in-loop/Error.pm-next-label.pl
/usr/share/doc/perl-Error-0.17020/examples/next-in-loop/Error.pm-next-out-of-catch.pl
/usr/share/doc/perl-Error-0.17020/examples/next-in-loop/Error.pm-next.pl
/usr/share/doc/perl-Error-0.17020/examples/next-in-loop/README
/usr/share/doc/perl-Error-0.17020/examples/warndie.pl
/usr/share/man/man3/Error.3pm.gz
/usr/share/man/man3/Error::Simple.3pm.gz
/usr/share/perl5/vendor_perl/Error
/usr/share/perl5/vendor_perl/Error.pm
/usr/share/perl5/vendor_perl/Error/Simple.pm

References

Summary

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