How To Install perl-Module-Locate on Fedora 36

In this tutorial we learn how to install perl-Module-Locate in Fedora 36. perl-Module-Locate is Locate Perl modules in the same fashion as “require” and “use”

Introduction

In this tutorial we learn how to install perl-Module-Locate on Fedora 36.

What is perl-Module-Locate

Using “locate()”, return the path that “require” would find for a given module or file name (it can also return a file handle if a reference in @INC has been used). This means you can test for the existence, or find the path for, modules without having to evaluate the code they contain. This module also comes with accompanying utility functions that are used within the module itself (except for “get_source”) and are available for import.

We can use yum or dnf to install perl-Module-Locate on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install perl-Module-Locate.

Install perl-Module-Locate on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install perl-Module-Locate

Install perl-Module-Locate on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install perl-Module-Locate

How To Uninstall perl-Module-Locate on Fedora 36

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

sudo dnf remove perl-Module-Locate

perl-Module-Locate Package Contents on Fedora 36

/usr/share/doc/perl-Module-Locate
/usr/share/doc/perl-Module-Locate/Changes
/usr/share/doc/perl-Module-Locate/README
/usr/share/licenses/perl-Module-Locate
/usr/share/licenses/perl-Module-Locate/LICENSE
/usr/share/man/man3/Module::Locate.3pm.gz
/usr/share/perl5/vendor_perl/Module
/usr/share/perl5/vendor_perl/Module/Locate.pm

References

Summary

In this tutorial we learn how to install perl-Module-Locate on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).