How To Install perl-SelfLoader on Rocky Linux 8

In this tutorial we learn how to install perl-SelfLoader on Rocky Linux 8. perl-SelfLoader is Load functions only on demand

Introduction

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

What is perl-SelfLoader

This Perl module tells its users that functions in a package are to be autoloaded from after the “DATA” token. See also “Autoloading” in perlsub.

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

Install perl-SelfLoader 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-SelfLoader using dnf by running the following command:

sudo dnf -y install perl-SelfLoader

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

sudo yum -y install perl-SelfLoader

How To Uninstall perl-SelfLoader on Rocky Linux 8

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

sudo dnf remove perl-SelfLoader

perl-SelfLoader Package Contents on Rocky Linux 8

/usr/share/man/man3/SelfLoader.3pm.gz
/usr/share/perl5/SelfLoader.pm

References

Summary

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