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

In this tutorial we learn how to install perl-Env.noarch in Amazon Linux 2. perl-Env.noarch is Perl module that imports environment variables as scalars or

Introduction

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

What is perl-Env.noarch

Perl maintains environment variables in a special hash named %ENV. For when this access method is inconvenient, the Perl module Env allows environment variables to be treated as scalar or array variables.

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

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

sudo yum -y install perl-Env.noarch

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

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

sudo yum remove perl-Env.noarch

perl-Env.noarch Package Contents on Amazon Linux 2

/usr/share/doc/perl-Env-1.04
/usr/share/doc/perl-Env-1.04/Changes
/usr/share/doc/perl-Env-1.04/LICENSE
/usr/share/doc/perl-Env-1.04/README
/usr/share/man/man3/Env.3pm.gz
/usr/share/perl5/vendor_perl/Env.pm

References

Summary

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