How To Install perl-local-lib on Rocky Linux 8

In this tutorial we learn how to install perl-local-lib on Rocky Linux 8. perl-local-lib is Create and use a local lib/ for perl modules

Introduction

In this tutorial we learn how to install perl-local-lib on Rocky Linux 8.

What is perl-local-lib

This module provides a quick, convenient way of bootstrapping a user- local Perl module library located within the user’s home directory. It also constructs and prints out for the user the list of environment variables using the syntax appropriate for the user’s current shell (as specified by the ‘SHELL’ environment variable), suitable for directly adding to one’s shell configuration file. More generally, local directory containing Perl modules outside of Perl’s ‘@INC’. This makes it easier to ship an application with an app-specific copy of a Perl module, or collection of modules. Useful in cases like when an upstream maintainer hasn’t applied a patch to a module of theirs that you need for your application.

We can use yum or dnf to install perl-local-lib on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install perl-local-lib.

Install perl-local-lib on Rocky Linux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install perl-local-lib using dnf by running the following command:

sudo dnf -y install perl-local-lib

Install perl-local-lib on Rocky Linux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install perl-local-lib using yum by running the following command:

sudo yum -y install perl-local-lib

How To Uninstall perl-local-lib on Rocky Linux 8

To uninstall only the perl-local-lib package we can use the following command:

sudo dnf remove perl-local-lib

perl-local-lib Package Contents on Rocky Linux 8

/usr/share/doc/perl-local-lib
/usr/share/doc/perl-local-lib/Changes
/usr/share/man/man3/POD2::DE::local::lib.3pm.gz
/usr/share/man/man3/POD2::PT_BR::local::lib.3pm.gz
/usr/share/man/man3/lib::core::only.3pm.gz
/usr/share/man/man3/local::lib.3pm.gz
/usr/share/perl5/vendor_perl/POD2
/usr/share/perl5/vendor_perl/POD2/DE
/usr/share/perl5/vendor_perl/POD2/DE/local
/usr/share/perl5/vendor_perl/POD2/DE/local/lib.pod
/usr/share/perl5/vendor_perl/POD2/PT_BR
/usr/share/perl5/vendor_perl/POD2/PT_BR/local
/usr/share/perl5/vendor_perl/POD2/PT_BR/local/lib.pod
/usr/share/perl5/vendor_perl/lib
/usr/share/perl5/vendor_perl/lib/core
/usr/share/perl5/vendor_perl/lib/core/only.pm
/usr/share/perl5/vendor_perl/local
/usr/share/perl5/vendor_perl/local/lib.pm

References

Summary

In this tutorial we learn how to install perl-local-lib on Rocky Linux 8 using yum and dnf.