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

In this tutorial we learn how to install perl-homedir.noarch in Amazon Linux 2. perl-homedir.noarch is Per-user Perl local

Introduction

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

What is perl-homedir.noarch

perl-homedir configures the system to automatically create a ~/perl5 directory in each user’s $HOME on user login. This allows each user to install CPAN packages via the CPAN to their $HOME, with no additional configuration or privileges, and without installing them system-wide. If you want your users to be able to install and use their own Perl modules, install this package.

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

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

sudo yum -y install perl-homedir.noarch

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

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

sudo yum remove perl-homedir.noarch

perl-homedir.noarch Package Contents on Amazon Linux 2

/etc/profile.d/perl-homedir.csh
/etc/profile.d/perl-homedir.sh

References

Summary

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