How To Install dieharder-libs on CentOS 7

In this tutorial we learn how to install dieharder-libs on CentOS 7. dieharder-libs is A library of random number generator tests and timing routines

Introduction

In this tutorial we learn how to install dieharder-libs on CentOS 7.

What is dieharder-libs

libdieharder is the core library of dieharder designed to be “the last suite of random number testers you’ll ever wear”. It can test any of its many pre-built and library linked generators (basically all of those in the Gnu Scientific Library plus a number of others from various sources) or a potentially random data-set in either an ASCII-formatted or raw (presumed 32 bit unsigned int) binary file. It is fairly straightforward to wrap new software generators for testing, or to add hardware generators that have a software interface for testing, and the file input method permits pretty much any software or hardware RNG to be tested using libdieharder calls. libdieharder has as a design goal the full encapsulation in an extensible shell of basically all the random number tests Marsaglia’s “Diehard” battery of tests, STS (v1.6) from NIST FIPS, Knuth’s tests, and more. Check the documentation for complete list.

We can use yum or dnf to install dieharder-libs on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install dieharder-libs.

Install dieharder-libs on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install dieharder-libs using yum by running the following command:

sudo yum -y install dieharder-libs

Install dieharder-libs on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

After updating yum database, We can install dieharder-libs using dnf by running the following command:

sudo dnf -y install dieharder-libs

How To Uninstall dieharder-libs on CentOS 7

To uninstall only the dieharder-libs package we can use the following command:

sudo dnf remove dieharder-libs

References

Summary

In this tutorial we learn how to install dieharder-libs on CentOS 7 using yum and dnf.