How To Install kexec-tools on AlmaLinux 8

In this tutorial we learn how to install kexec-tools in AlmaLinux 8. kexec-tools is The kexec/kdump userspace component

Introduction

In this tutorial we learn how to install kexec-tools on AlmaLinux 8.

What is kexec-tools

kexec-tools provides /usr/sbin/kexec binary that facilitates a new kernel to boot using the kernel’s kexec feature either on a normal or a panic reboot. This package contains the /usr/sbin/kexec binary and ancillary utilities that together form the userspace component of the kernel’s kexec feature.

We can use yum or dnf to install kexec-tools on AlmaLinux 8. In this tutorial we discuss both methods but you only need to choose one of method to install kexec-tools.

Install kexec-tools 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 kexec-tools using dnf by running the following command:

sudo dnf -y install kexec-tools

Install kexec-tools 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 kexec-tools using yum by running the following command:

sudo yum -y install kexec-tools

How To Uninstall kexec-tools on AlmaLinux 8

To uninstall only the kexec-tools package we can use the following command:

sudo dnf remove kexec-tools

References

Summary

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