How To Install perl-Getopt-Long.noarch on Amazon Linux 2
Introduction
In this tutorial we learn how to install perl-Getopt-Long.noarch on Amazon Linux 2.
What is perl-Getopt-Long.noarch
The Getopt called GetOptions(). It parses the command line from @ARGV, recognizing and removing specified options and their possible values. It adheres to the POSIX syntax for command line options, with GNU extensions. In general, this means that options have long names instead of single letters, and are introduced with a double dash “–”. Support for bundling of command line options, as was the case with the more traditional single-letter approach, is provided but not enabled by default.
We can use yum to install perl-Getopt-Long.noarch on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install perl-Getopt-Long.noarch.
Install perl-Getopt-Long.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-Getopt-Long.noarch using yum by running the following command:
sudo yum -y install perl-Getopt-Long.noarch
How To Uninstall perl-Getopt-Long.noarch on Amazon Linux 2
To uninstall only the perl-Getopt-Long.noarch package we can use the following command:
sudo yum remove perl-Getopt-Long.noarch
perl-Getopt-Long.noarch Package Contents on Amazon Linux 2
/usr/share/doc/perl-Getopt-Long-2.40
/usr/share/doc/perl-Getopt-Long-2.40/CHANGES
/usr/share/doc/perl-Getopt-Long-2.40/README
/usr/share/doc/perl-Getopt-Long-2.40/examples
/usr/share/doc/perl-Getopt-Long-2.40/examples/README
/usr/share/doc/perl-Getopt-Long-2.40/examples/parsetime.pl
/usr/share/doc/perl-Getopt-Long-2.40/examples/skel1.pl
/usr/share/doc/perl-Getopt-Long-2.40/examples/skel2.pl
/usr/share/doc/perl-Getopt-Long-2.40/examples/skel3.pl
/usr/share/doc/perl-Getopt-Long-2.40/examples/skel4.pl
/usr/share/man/man3/Getopt::Long.3pm.gz
/usr/share/perl5/vendor_perl/Getopt
/usr/share/perl5/vendor_perl/Getopt/Long.pm
/usr/share/perl5/vendor_perl/newgetopt.pl
References
Summary
In this tutorial we learn how to install perl-Getopt-Long.noarch on Amazon Linux 2 using yum.