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

In this tutorial we learn how to install perl-autodie.noarch in Amazon Linux 2. perl-autodie.noarch is Replace functions with ones that succeed or die

Introduction

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

What is perl-autodie.noarch

The “autodie” and “Fatal” pragma provides a convenient way to replace functions that normally return false on failure with equivalents that throw an exception on failure. However “Fatal” has been obsoleted by the new autodie pragma. Please use autodie in preference to “Fatal”.

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

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

sudo yum -y install perl-autodie.noarch

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

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

sudo yum remove perl-autodie.noarch

perl-autodie.noarch Package Contents on Amazon Linux 2

/usr/share/doc/perl-autodie-2.16
/usr/share/doc/perl-autodie-2.16/AUTHORS
/usr/share/doc/perl-autodie-2.16/Changes
/usr/share/doc/perl-autodie-2.16/LICENSE
/usr/share/doc/perl-autodie-2.16/README
/usr/share/man/man3/Fatal.3pm.gz
/usr/share/man/man3/autodie.3pm.gz
/usr/share/man/man3/autodie::exception.3pm.gz
/usr/share/man/man3/autodie::exception::system.3pm.gz
/usr/share/man/man3/autodie::hints.3pm.gz
/usr/share/man/man3/autodie::skip.3pm.gz
/usr/share/perl5/vendor_perl/Fatal.pm
/usr/share/perl5/vendor_perl/autodie
/usr/share/perl5/vendor_perl/autodie.pm
/usr/share/perl5/vendor_perl/autodie/exception
/usr/share/perl5/vendor_perl/autodie/exception.pm
/usr/share/perl5/vendor_perl/autodie/exception/system.pm
/usr/share/perl5/vendor_perl/autodie/hints.pm
/usr/share/perl5/vendor_perl/autodie/skip.pm

References

Summary

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