How To Install libdieharder-dev on Kali Linux
Introduction
In this tutorial we learn how to install libdieharder-dev
on Kali Linux.
What is libdieharder-dev
libdieharder-dev is:
libdieharder is the core library of dieharder and friends, designed to be “the last suite of random number testers you’ll ever wear”. It can test any of its many prebuilt 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 dataset in either an ascii-formatted or raw (presumed 32 bit uint) 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 I have been able to find – George Marsaglia’s “diehard” battery of tests, STS (v1.6) from NIST FIPS, Knuth’s tests, and more. Check in the man page(s) or /usr/share/dieharder*/dieharder.pdf for documentation.
This package provides the header files and the pdf manual.
There are three methods to install libdieharder-dev
on Kali Linux. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install libdieharder-dev Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install libdieharder-dev
using apt-get
by running the following command:
sudo apt-get -y install libdieharder-dev
Install libdieharder-dev Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install libdieharder-dev
using apt
by running the following command:
sudo apt -y install libdieharder-dev
Install libdieharder-dev Using aptitude
If you want to follow this method, you might need to install aptitude on Kali Linux first since aptitude is usually not installed by default on Kali Linux. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install libdieharder-dev
using aptitude
by running the following command:
sudo aptitude -y install libdieharder-dev
How To Uninstall libdieharder-dev on Kali Linux
To uninstall only the libdieharder-dev
package we can use the following command:
sudo apt-get remove libdieharder-dev
Uninstall libdieharder-dev And Its Dependencies
To uninstall libdieharder-dev
and its dependencies that are no longer needed by Kali Linux, we can use the command below:
sudo apt-get -y autoremove libdieharder-dev
Remove libdieharder-dev Configurations and Data
To remove libdieharder-dev
configuration and data from Kali Linux we can use the following command:
sudo apt-get -y purge libdieharder-dev
Remove libdieharder-dev configuration, data, and all of its dependencies
We can use the following command to remove libdieharder-dev
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libdieharder-dev
Dependencies
libdieharder-dev have the following dependencies:
References
Summary
In this tutorial we learn how to install libdieharder-dev
package on Kali Linux using different package management tools: apt
, apt-get
and aptitude
.