How To Install perl-Module-Mask on Fedora 36

In this tutorial we learn how to install perl-Module-Mask in Fedora 36. perl-Module-Mask is Pretend certain modules are not installed

Introduction

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

What is perl-Module-Mask

Sometimes you need to test what happens when a given module is not installed. This module provides a way of temporarily hiding installed modules from perl’s require mechanism. The Module to @INC and blocks require calls to restricted modules.

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

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

sudo dnf -y install perl-Module-Mask

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

sudo yum -y install perl-Module-Mask

How To Uninstall perl-Module-Mask on Fedora 36

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

sudo dnf remove perl-Module-Mask

perl-Module-Mask Package Contents on Fedora 36

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

References

Summary

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