dieharder command not found

In this troubleshooting guide we learn how to fix dieharder command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

dieharder: command not found

or when using sudo you get the following error message

sudo: dieharder: command not found

Solutions to dieharder: command not found

How To Fix dieharder: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu dieharder is provided by dieharder package.

dieharder is:

dieharder is a fairly involved random number/uniform deviate generator tester. It can either test any of its many prebuilt and linked generators (basically all of those in the GNU Scientific Library plus any others I’ve been able to find) or a potentially random dataset in a file. With file input, it can test either N-bit bitstrings (with N user specifiable) or (double precision) floating point numbers in the range [0.0,1.0) (uniform deviates). It is thus suitable for use in testing both software RNG’s and hardware RNG’s.

This package provides the command-line frontend.

To fix this problem, we can install more using the command below.

sudo apt-get -y install dieharder

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install dieharder.

sudo apt -y install dieharder

Or if you have aptitude installed you can use the following command.

sudo aptitude install dieharder

Summary

In this tutorial we learn how to fix dieharder command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.