How To Install haveged on CentOS 7
Introduction
In this tutorial we learn how to install haveged
on CentOS 7.
What is haveged
A Linux entropy source using the HAVEGE algorithm Haveged is a user space entropy daemon which is not dependent upon the standard mechanisms for harvesting randomness for the system entropy pool. This is important in systems with high entropy needs or limited user interaction (e.g. headless servers). Haveged uses HAVEGE (HArdware Volatile Entropy Gathering and Expansion) to maintain a 1M pool of random bytes used to fill /dev/random whenever the supply of random bits in /dev/random falls below the low water mark of the device. The principle inputs to haveged are the sizes of the processor instruction and data caches used to setup the HAVEGE collector. The haveged default is a 4kb data cache and a 16kb instruction cache. On machines with a cpuid instruction, haveged will attempt to select appropriate values from internal tables.
We can use yum
or dnf
to install haveged
on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install haveged.
Install haveged on CentOS 7 Using yum
Update yum database with yum
using the following command.
After updating yum database, We can install haveged
using yum
by running the following command:
Install haveged 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.
After updating yum database, We can install haveged
using dnf
by running the following command:
How To Uninstall haveged on CentOS 7
To uninstall only the haveged
package we can use the following command:
References
Summary
In this tutorial we learn how to install haveged
on CentOS 7 using yum
and dnf
.