How To Install haveged on Fedora 34
Introduction
In this tutorial we learn how to install haveged
on Fedora 34.
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. haveged 1.9.14 3.fc34 x86_64 74 k haveged-1.9.14-3.fc34.src.rpm fedora A Linux entropy source using the HAVEGE algorithm https GPLv3+ 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 Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install haveged.
Install haveged on Fedora 34 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
The output should look something like this:
Fedora 34 - x86_64 20 kB/s | 6.6 kB 00:00
Fedora 34 openh264 (From Cisco) - x86_64 1.4 kB/s | 989 B 00:00
Fedora Modular 34 - x86_64 68 kB/s | 6.5 kB 00:00
Fedora 34 - x86_64 - Updates 3.5 kB/s | 6.2 kB 00:01
Fedora Modular 34 - x86_64 - Updates 17 kB/s | 5.9 kB 00:00
Metadata cache created.
After updating yum database, We can install haveged
using dnf
by running the following command:
sudo dnf -y install haveged
Install haveged on Fedora 34 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
The output should look something like this:
Fedora 34 - x86_64 20 kB/s | 6.6 kB 00:00
Fedora 34 openh264 (From Cisco) - x86_64 1.4 kB/s | 989 B 00:00
Fedora Modular 34 - x86_64 68 kB/s | 6.5 kB 00:00
Fedora 34 - x86_64 - Updates 3.5 kB/s | 6.2 kB 00:01
Fedora Modular 34 - x86_64 - Updates 17 kB/s | 5.9 kB 00:00
Metadata cache created.
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 Fedora 34
To uninstall only the haveged
package we can use the following command:
sudo dnf remove haveged
haveged Package Contents on Fedora 34
/usr/lib/.build-id
/usr/lib/.build-id/88
/usr/lib/.build-id/88/dc8e0406fdb508d3cee32ff9546238567fa3f5
/usr/lib/.build-id/a9
/usr/lib/.build-id/a9/df661b77a43aae09a13d68edb5c7bd225f13f4
/usr/lib/dracut/modules.d/98haveged
/usr/lib/dracut/modules.d/98haveged/module-setup.sh
/usr/lib/systemd/system/haveged-switch-root.service
/usr/lib/systemd/system/haveged.service
/usr/lib/udev/rules.d/90-haveged.rules
/usr/lib64/libhavege.so.2
/usr/lib64/libhavege.so.2.0.0
/usr/sbin/haveged
/usr/share/doc/haveged
/usr/share/doc/haveged/AUTHORS
/usr/share/doc/haveged/COPYING
/usr/share/doc/haveged/ChangeLog
/usr/share/doc/haveged/README
/usr/share/doc/haveged/havege_sample.c
/usr/share/man/man8/haveged.8.gz
/usr/lib/.build-id
/usr/lib/.build-id/9c
/usr/lib/.build-id/9c/f672239a9c89e7e0c9b57b5b92e20ade97c95a
/usr/lib/.build-id/ba
/usr/lib/.build-id/ba/383d011249da2ad3868f9523633c120c482dab
/usr/lib/dracut/modules.d/98haveged
/usr/lib/dracut/modules.d/98haveged/module-setup.sh
/usr/lib/libhavege.so.2
/usr/lib/libhavege.so.2.0.0
/usr/lib/systemd/system/haveged-switch-root.service
/usr/lib/systemd/system/haveged.service
/usr/lib/udev/rules.d/90-haveged.rules
/usr/sbin/haveged
/usr/share/doc/haveged
/usr/share/doc/haveged/AUTHORS
/usr/share/doc/haveged/COPYING
/usr/share/doc/haveged/ChangeLog
/usr/share/doc/haveged/README
/usr/share/doc/haveged/havege_sample.c
/usr/share/man/man8/haveged.8.gz
References
- [haveged website](https://github.com/jirka-h/haveged https://github.com/jirka-h/haveged)
Summary
In this tutorial we learn how to install haveged
on Fedora 34 using yum and dnf.