How To Install perl-Test-MockRandom on Fedora 36

In this tutorial we learn how to install perl-Test-MockRandom in Fedora 36. perl-Test-MockRandom is Replaces random number generation with non-random number generation

Introduction

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

What is perl-Test-MockRandom

This perhaps ridiculous-seeming module was created to test routines that manipulate random numbers by providing a known output from rand. Given a list of seeds with srand, it will return each in turn. After seeded random numbers are exhausted, it will always return 0. Seed numbers must be of a form that meets the expected output from rand as called with no arguments – i.e. they must be between 0 (inclusive) and 1 (exclusive). In order to facilitate generating and testing a nearly-one number, this module exports the function oneish, which returns a number just fractionally less than one.

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

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

sudo dnf -y install perl-Test-MockRandom

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

sudo yum -y install perl-Test-MockRandom

How To Uninstall perl-Test-MockRandom on Fedora 36

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

sudo dnf remove perl-Test-MockRandom

perl-Test-MockRandom Package Contents on Fedora 36

/usr/share/doc/perl-Test-MockRandom
/usr/share/doc/perl-Test-MockRandom/CONTRIBUTING
/usr/share/doc/perl-Test-MockRandom/Changes
/usr/share/doc/perl-Test-MockRandom/README
/usr/share/doc/perl-Test-MockRandom/examples
/usr/share/doc/perl-Test-MockRandom/examples/mock-rand.t
/usr/share/licenses/perl-Test-MockRandom
/usr/share/licenses/perl-Test-MockRandom/LICENSE
/usr/share/man/man3/Test::MockRandom.3pm.gz
/usr/share/perl5/vendor_perl/Test
/usr/share/perl5/vendor_perl/Test/MockRandom.pm

References

Summary

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