How To Install ghc-mwc-random on Fedora 36

In this tutorial we learn how to install ghc-mwc-random in Fedora 36. ghc-mwc-random is Fast, high quality pseudo random number generation

Introduction

In this tutorial we learn how to install ghc-mwc-random on Fedora 36.

What is ghc-mwc-random

A library for generating high quality random numbers that follow either a uniform or normal distribution. The generated numbers are suitable for use in statistical applications. The uniform PRNG uses Marsaglia’s MWC256 (also known as MWC8222) multiply-with-carry generator, which has a period of 2^8222 and fares well in tests of randomness. It is also extremely fast, between 2 and 3 times faster than the Mersenne Twister. Compared to the mersenne-random package, this package has a more convenient API, is faster, and supports more statistical distributions.

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

Install ghc-mwc-random 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 ghc-mwc-random using dnf by running the following command:

sudo dnf -y install ghc-mwc-random

Install ghc-mwc-random 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 ghc-mwc-random using yum by running the following command:

sudo yum -y install ghc-mwc-random

How To Uninstall ghc-mwc-random on Fedora 36

To uninstall only the ghc-mwc-random package we can use the following command:

sudo dnf remove ghc-mwc-random

ghc-mwc-random Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/b5
/usr/lib/.build-id/b5/15af989502cedce63ac3c5a8aa350ab0f95120
/usr/lib64/libHSmwc-random-0.15.0.1-JOTQDfn3lslCekyxhaELi2-ghc8.10.5.so
/usr/share/licenses/ghc-mwc-random
/usr/share/licenses/ghc-mwc-random/LICENSE

References

Summary

In this tutorial we learn how to install ghc-mwc-random on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).