How To Install perl-File-Listing.noarch on Amazon Linux 2

In this tutorial we learn how to install perl-File-Listing.noarch in Amazon Linux 2. perl-File-Listing.noarch is Parse directory listing

Introduction

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

What is perl-File-Listing.noarch

This module exports a single function called parse_dir(), which can be used to parse directory listings.

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

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

sudo yum -y install perl-File-Listing.noarch

How To Uninstall perl-File-Listing.noarch on Amazon Linux 2

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

sudo yum remove perl-File-Listing.noarch

perl-File-Listing.noarch Package Contents on Amazon Linux 2

/usr/share/doc/perl-File-Listing-6.04
/usr/share/doc/perl-File-Listing-6.04/Changes
/usr/share/doc/perl-File-Listing-6.04/README
/usr/share/man/man3/File::Listing.3pm.gz
/usr/share/perl5/vendor_perl/File
/usr/share/perl5/vendor_perl/File/Listing.pm

References

Summary

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