How To Install perl-Data-OptList.noarch on Amazon Linux 2

In this tutorial we learn how to install perl-Data-OptList.noarch in Amazon Linux 2. perl-Data-OptList.noarch is Parse and validate simple name/value option pairs

Introduction

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

What is perl-Data-OptList.noarch

Hashes are great for storing named data, but if you want more than one entry for a name, you have to use a list of pairs. Even then, this is really boring to write $values = [ foo => undef, bar => undef, baz => undef, xyz => { … }, ]; With Data $values = Data qw(foo bar baz), xyz => { … }, ]); This works by assuming that any defined scalar is a name and any reference following a name is its value.

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

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

sudo yum -y install perl-Data-OptList.noarch

How To Uninstall perl-Data-OptList.noarch on Amazon Linux 2

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

sudo yum remove perl-Data-OptList.noarch

perl-Data-OptList.noarch Package Contents on Amazon Linux 2

/usr/share/doc/perl-Data-OptList-0.107
/usr/share/doc/perl-Data-OptList-0.107/Changes
/usr/share/doc/perl-Data-OptList-0.107/LICENSE
/usr/share/doc/perl-Data-OptList-0.107/README
/usr/share/doc/perl-Data-OptList-0.107/t
/usr/share/doc/perl-Data-OptList-0.107/t/hash.t
/usr/share/doc/perl-Data-OptList-0.107/t/mkopt.t
/usr/share/doc/perl-Data-OptList-0.107/t/release-pod-syntax.t
/usr/share/man/man3/Data::OptList.3pm.gz
/usr/share/perl5/vendor_perl/Data
/usr/share/perl5/vendor_perl/Data/OptList.pm

References

Summary

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