How To Install kexec-tools on CentOS 8

kexec-tools is The kexec/kdump userspace component The kexec/kdump userspace component

Introduction

In this tutorial we learn how to install kexec-tools on CentOS 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. kexec-tools 2.0.20 46.el8_4.1 x86_64 508 k kexec-tools-2.0.20-46.el8_4.1.src.rpm baseos The kexec/kdump userspace component GPLv2 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 CentOS 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 CentOS 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

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 CentOS 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

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 CentOS 8

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

sudo dnf remove kexec-tools

kexec-tools Package Contents on CentOS 8

/etc/kdump
/etc/kdump.conf
/etc/kdump/post.d
/etc/kdump/pre.d
/etc/makedumpfile.conf.sample
/etc/sysconfig/kdump
/usr/bin/kdumpctl
/usr/lib/.build-id
/usr/lib/.build-id/41
/usr/lib/.build-id/41/0446e049ccba8f889fb607077eb41363f2cc51
/usr/lib/.build-id/6d
/usr/lib/.build-id/6d/22baf0547b036df0dd88962abe611df4ec67b7
/usr/lib/.build-id/79
/usr/lib/.build-id/79/02daa47c60f57867056b82c356fd45ef1f89eb
/usr/lib/.build-id/a3
/usr/lib/.build-id/a3/f37c0e1e6a33409557575632d03874957021ef
/usr/lib/dracut/modules.d/99earlykdump
/usr/lib/dracut/modules.d/99earlykdump/early-kdump.sh
/usr/lib/dracut/modules.d/99earlykdump/module-setup.sh
/usr/lib/dracut/modules.d/99kdumpbase
/usr/lib/dracut/modules.d/99kdumpbase/kdump-capture.service
/usr/lib/dracut/modules.d/99kdumpbase/kdump-emergency.service
/usr/lib/dracut/modules.d/99kdumpbase/kdump-emergency.target
/usr/lib/dracut/modules.d/99kdumpbase/kdump-error-handler.service
/usr/lib/dracut/modules.d/99kdumpbase/kdump-error-handler.sh
/usr/lib/dracut/modules.d/99kdumpbase/kdump.sh
/usr/lib/dracut/modules.d/99kdumpbase/module-setup.sh
/usr/lib/dracut/modules.d/99kdumpbase/monitor_dd_progress
/usr/lib/kdump
/usr/lib/kdump/kdump-lib-initramfs.sh
/usr/lib/kdump/kdump-lib.sh
/usr/lib/kdump/kdump-logger.sh
/usr/lib/kernel/install.d/60-kdump.install
/usr/lib/systemd/system-generators/kdump-dep-generator.sh
/usr/lib/systemd/system/kdump.service
/usr/lib/udev/kdump-udev-throttler
/usr/lib/udev/rules.d
/usr/lib/udev/rules.d/98-kexec.rules
/usr/lib64/eppic_makedumpfile.so
/usr/sbin/kexec
/usr/sbin/makedumpfile
/usr/sbin/mkdumprd
/usr/sbin/vmcore-dmesg
/usr/share/doc/kexec-tools
/usr/share/doc/kexec-tools/News
/usr/share/doc/kexec-tools/TODO
/usr/share/doc/kexec-tools/early-kdump-howto.txt
/usr/share/doc/kexec-tools/fadump-howto.txt
/usr/share/doc/kexec-tools/kdump-in-cluster-environment.txt
/usr/share/doc/kexec-tools/kexec-kdump-howto.txt
/usr/share/doc/kexec-tools/live-image-kdump-howto.txt
/usr/share/doc/kexec-tools/supported-kdump-targets.txt
/usr/share/kdump
/usr/share/licenses/kexec-tools
/usr/share/licenses/kexec-tools/COPYING
/usr/share/makedumpfile
/usr/share/makedumpfile/eppic_scripts
/usr/share/makedumpfile/eppic_scripts/README
/usr/share/makedumpfile/eppic_scripts/ap_messages_3_10_to_4_8.c
/usr/share/makedumpfile/eppic_scripts/dir_names_3_10_to_3_13.c
/usr/share/makedumpfile/eppic_scripts/dir_names_3_14_to_4_8.c
/usr/share/makedumpfile/eppic_scripts/keyring_3_10_to_4_3.c
/usr/share/makedumpfile/eppic_scripts/keyring_4_4_to_4_8.c
/usr/share/makedumpfile/eppic_scripts/proc_names_3_10_to_4_8.c
/usr/share/makedumpfile/eppic_scripts/tcp_sk_buf_3_10_to_4_8.c
/usr/share/makedumpfile/eppic_scripts/udp_sk_buf_3_10_to_4_8.c
/usr/share/makedumpfile/eppic_scripts/unix_sk_buff_3_10_to_4_8.c
/usr/share/makedumpfile/eppic_scripts/vhost_net_buffers_3_10_to_3_18.c
/usr/share/makedumpfile/eppic_scripts/vhost_net_buffers_3_19_to_4_8.c
/usr/share/makedumpfile/eppic_scripts/vhost_scsi_buffers_3_10_to_4_8.c
/usr/share/man/man5/kdump.conf.5.gz
/usr/share/man/man5/makedumpfile.conf.5.gz
/usr/share/man/man8/kdumpctl.8.gz
/usr/share/man/man8/kexec.8.gz
/usr/share/man/man8/makedumpfile.8.gz
/usr/share/man/man8/mkdumprd.8.gz
/usr/share/man/man8/vmcore-dmesg.8.gz
/var/crash
/etc/kdump
/etc/kdump.conf
/etc/kdump/post.d
/etc/kdump/pre.d
/etc/makedumpfile.conf.sample
/etc/sysconfig/kdump
/usr/bin/kdumpctl
/usr/lib/.build-id
/usr/lib/.build-id/58
/usr/lib/.build-id/58/e2111ce47319e660d779a9e94b650fe94ccb9f
/usr/lib/.build-id/92
/usr/lib/.build-id/92/be5816e0faaff844e40cfd7aca4d8b79612803
/usr/lib/.build-id/ca
/usr/lib/.build-id/ca/700654ad1468cc7828b4d88931622aac1243a3
/usr/lib/.build-id/dd
/usr/lib/.build-id/dd/7fc6bed1aaf78ce5a7da175bce815048bb3613
/usr/lib/dracut/modules.d/99earlykdump
/usr/lib/dracut/modules.d/99earlykdump/early-kdump.sh
/usr/lib/dracut/modules.d/99earlykdump/module-setup.sh
/usr/lib/dracut/modules.d/99kdumpbase
/usr/lib/dracut/modules.d/99kdumpbase/kdump-capture.service
/usr/lib/dracut/modules.d/99kdumpbase/kdump-emergency.service
/usr/lib/dracut/modules.d/99kdumpbase/kdump-emergency.target
/usr/lib/dracut/modules.d/99kdumpbase/kdump-error-handler.service
/usr/lib/dracut/modules.d/99kdumpbase/kdump-error-handler.sh
/usr/lib/dracut/modules.d/99kdumpbase/kdump.sh
/usr/lib/dracut/modules.d/99kdumpbase/module-setup.sh
/usr/lib/dracut/modules.d/99kdumpbase/monitor_dd_progress
/usr/lib/kdump
/usr/lib/kdump/kdump-lib-initramfs.sh
/usr/lib/kdump/kdump-lib.sh
/usr/lib/kdump/kdump-logger.sh
/usr/lib/kernel/install.d/60-kdump.install
/usr/lib/systemd/system-generators/kdump-dep-generator.sh
/usr/lib/systemd/system/kdump.service
/usr/lib/udev/kdump-udev-throttler
/usr/lib/udev/rules.d
/usr/lib/udev/rules.d/98-kexec.rules
/usr/lib64/eppic_makedumpfile.so
/usr/sbin/kexec
/usr/sbin/makedumpfile
/usr/sbin/mkdumprd
/usr/sbin/vmcore-dmesg
/usr/share/doc/kexec-tools
/usr/share/doc/kexec-tools/News
/usr/share/doc/kexec-tools/TODO
/usr/share/doc/kexec-tools/early-kdump-howto.txt
/usr/share/doc/kexec-tools/fadump-howto.txt
/usr/share/doc/kexec-tools/kdump-in-cluster-environment.txt
/usr/share/doc/kexec-tools/kexec-kdump-howto.txt
/usr/share/doc/kexec-tools/live-image-kdump-howto.txt
/usr/share/doc/kexec-tools/supported-kdump-targets.txt
/usr/share/kdump
/usr/share/licenses/kexec-tools
/usr/share/licenses/kexec-tools/COPYING
/usr/share/makedumpfile
/usr/share/makedumpfile/eppic_scripts
/usr/share/makedumpfile/eppic_scripts/README
/usr/share/makedumpfile/eppic_scripts/ap_messages_3_10_to_4_8.c
/usr/share/makedumpfile/eppic_scripts/dir_names_3_10_to_3_13.c
/usr/share/makedumpfile/eppic_scripts/dir_names_3_14_to_4_8.c
/usr/share/makedumpfile/eppic_scripts/keyring_3_10_to_4_3.c
/usr/share/makedumpfile/eppic_scripts/keyring_4_4_to_4_8.c
/usr/share/makedumpfile/eppic_scripts/proc_names_3_10_to_4_8.c
/usr/share/makedumpfile/eppic_scripts/tcp_sk_buf_3_10_to_4_8.c
/usr/share/makedumpfile/eppic_scripts/udp_sk_buf_3_10_to_4_8.c
/usr/share/makedumpfile/eppic_scripts/unix_sk_buff_3_10_to_4_8.c
/usr/share/makedumpfile/eppic_scripts/vhost_net_buffers_3_10_to_3_18.c
/usr/share/makedumpfile/eppic_scripts/vhost_net_buffers_3_19_to_4_8.c
/usr/share/makedumpfile/eppic_scripts/vhost_scsi_buffers_3_10_to_4_8.c
/usr/share/man/man5/kdump.conf.5.gz
/usr/share/man/man5/makedumpfile.conf.5.gz
/usr/share/man/man8/kdumpctl.8.gz
/usr/share/man/man8/kexec.8.gz
/usr/share/man/man8/makedumpfile.8.gz
/usr/share/man/man8/mkdumprd.8.gz
/usr/share/man/man8/vmcore-dmesg.8.gz
/var/crash

References

Summary

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