How To Install haveged on AlmaLinux 8

In this tutorial we learn how to install haveged in AlmaLinux 8. haveged is A Linux entropy source using the HAVEGE algorithm

Introduction

In this tutorial we learn how to install haveged on AlmaLinux 8.

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 AlmaLinux 8. In this tutorial we discuss both methods but you only need to choose one of method to install haveged.

Install haveged on AlmaLinux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install haveged

Install haveged on AlmaLinux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install haveged using yum by running the following command:

sudo yum -y install haveged

How To Uninstall haveged on AlmaLinux 8

To uninstall only the haveged package we can use the following command:

sudo dnf remove haveged

References

Summary

In this tutorial we learn how to install haveged on AlmaLinux 8 using yum and dnf.