How To Install perl-Test-Mock-Guard on Fedora 36

In this tutorial we learn how to install perl-Test-Mock-Guard in Fedora 36. perl-Test-Mock-Guard is Simple mock test library using RAII

Introduction

In this tutorial we learn how to install perl-Test-Mock-Guard on Fedora 36.

What is perl-Test-Mock-Guard

Test change method behavior by each scope. See SYNOPSIS’s sample code.

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

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

sudo dnf -y install perl-Test-Mock-Guard

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

sudo yum -y install perl-Test-Mock-Guard

How To Uninstall perl-Test-Mock-Guard on Fedora 36

To uninstall only the perl-Test-Mock-Guard package we can use the following command:

sudo dnf remove perl-Test-Mock-Guard

perl-Test-Mock-Guard Package Contents on Fedora 36

/usr/share/doc/perl-Test-Mock-Guard
/usr/share/doc/perl-Test-Mock-Guard/Changes
/usr/share/doc/perl-Test-Mock-Guard/META.json
/usr/share/doc/perl-Test-Mock-Guard/README.md
/usr/share/doc/perl-Test-Mock-Guard/cpanfile
/usr/share/doc/perl-Test-Mock-Guard/minil.toml
/usr/share/licenses/perl-Test-Mock-Guard
/usr/share/licenses/perl-Test-Mock-Guard/LICENSE
/usr/share/man/man3/Test::Mock::Guard.3pm.gz
/usr/share/perl5/vendor_perl/Test
/usr/share/perl5/vendor_perl/Test/Mock
/usr/share/perl5/vendor_perl/Test/Mock/Guard.pm

References

Summary

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