How To Install dieharder-libs on CentOS 8

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 8.

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 8. 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 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

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

sudo dnf -y install dieharder-libs

Install dieharder-libs on CentOS 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

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

sudo yum -y install dieharder-libs

How To Uninstall dieharder-libs on CentOS 8

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

sudo dnf remove dieharder-libs

dieharder-libs Package Contents on CentOS 8

/usr/lib/.build-id
/usr/lib/.build-id/1b
/usr/lib/.build-id/1b/6f7080eda2f3b045a2a3bbbf38d80f157a5cc0
/usr/lib64/libdieharder.so.3
/usr/lib64/libdieharder.so.3.31.1
/usr/share/man/man3/libdieharder.3.gz

References

Summary

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