How To Install kea-hooks on Rocky Linux 8

In this tutorial we learn how to install kea-hooks on Rocky Linux 8. kea-hooks is Hooks libraries for kea

Introduction

In this tutorial we learn how to install kea-hooks on Rocky Linux 8.

What is kea-hooks

Hooking mechanism allow Kea to load one or more dynamically-linked libraries (known as “hooks libraries”) and, at various points in its processing (“hook points”), call functions in them. Those functions perform whatever custom processing is required.

We can use yum or dnf to install kea-hooks on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install kea-hooks.

Install kea-hooks on Rocky Linux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install kea-hooks

Install kea-hooks on Rocky Linux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install kea-hooks using yum by running the following command:

sudo yum -y install kea-hooks

How To Uninstall kea-hooks on Rocky Linux 8

To uninstall only the kea-hooks package we can use the following command:

sudo dnf remove kea-hooks

kea-hooks Package Contents on Rocky Linux 8

/usr/lib/.build-id
/usr/lib/.build-id/22
/usr/lib/.build-id/22/32f02854a6376f3839abdc92a0c93ee497fa9a
/usr/lib/.build-id/29
/usr/lib/.build-id/29/7812aa341a9bc44fb1080a510508ae7472e09f
/usr/lib/.build-id/4f
/usr/lib/.build-id/4f/6229e25e126f36962b94fa25a622d11bf9f6a0
/usr/lib/.build-id/95
/usr/lib/.build-id/95/bebb80cc1228827b7325e7231661f54adf36f8
/usr/lib/.build-id/cd
/usr/lib/.build-id/cd/f5d1d5c01a7a72f22fe6145c858e666b95e126
/usr/lib/.build-id/f9
/usr/lib/.build-id/f9/3b1a7eaeec6f7821d67e4c3451c158fbfe9644
/usr/lib64/kea
/usr/lib64/kea/hooks
/usr/lib64/kea/hooks/libdhcp_bootp.so
/usr/lib64/kea/hooks/libdhcp_flex_option.so
/usr/lib64/kea/hooks/libdhcp_ha.so
/usr/lib64/kea/hooks/libdhcp_lease_cmds.so
/usr/lib64/kea/hooks/libdhcp_mysql_cb.so
/usr/lib64/kea/hooks/libdhcp_stat_cmds.so

References

Summary

In this tutorial we learn how to install kea-hooks on Rocky Linux 8 using yum and dnf.