How To Install kernel-tools on Rocky Linux 8

In this tutorial we learn how to install kernel-tools on Rocky Linux 8. kernel-tools is Assortment of tools for the Linux kernel

Introduction

In this tutorial we learn how to install kernel-tools on Rocky Linux 8.

What is kernel-tools

This package contains the tools/ directory from the kernel source and the supporting documentation.

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

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

sudo dnf -y install kernel-tools

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

sudo yum -y install kernel-tools

How To Uninstall kernel-tools on Rocky Linux 8

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

sudo dnf remove kernel-tools

kernel-tools Package Contents on Rocky Linux 8

/etc/logrotate.d/kvm_stat
/etc/sysconfig/cpupower
/usr/bin/centrino-decode
/usr/bin/cpupower
/usr/bin/gpio-event-mon
/usr/bin/gpio-hammer
/usr/bin/iio_event_monitor
/usr/bin/iio_generic_buffer
/usr/bin/intel-speed-select
/usr/bin/kvm_stat
/usr/bin/lsgpio
/usr/bin/lsiio
/usr/bin/page_owner_sort
/usr/bin/powernow-k8-decode
/usr/bin/slabinfo
/usr/bin/tmon
/usr/bin/turbostat
/usr/bin/x86_energy_perf_policy
/usr/lib/systemd/system/cpupower.service
/usr/lib/systemd/system/kvm_stat.service
/usr/share/bash-completion/completions/cpupower
/usr/share/locale/cs/LC_MESSAGES/cpupower.mo
/usr/share/locale/de/LC_MESSAGES/cpupower.mo
/usr/share/locale/fr/LC_MESSAGES/cpupower.mo
/usr/share/locale/it/LC_MESSAGES/cpupower.mo
/usr/share/locale/pt/LC_MESSAGES/cpupower.mo
/usr/share/man/man1/cpupower-frequency-info.1.gz
/usr/share/man/man1/cpupower-frequency-set.1.gz
/usr/share/man/man1/cpupower-idle-info.1.gz
/usr/share/man/man1/cpupower-idle-set.1.gz
/usr/share/man/man1/cpupower-info.1.gz
/usr/share/man/man1/cpupower-monitor.1.gz
/usr/share/man/man1/cpupower-set.1.gz
/usr/share/man/man1/cpupower.1.gz
/usr/share/man/man1/kvm_stat.1.gz
/usr/share/man/man8/turbostat.8.gz
/usr/share/man/man8/x86_energy_perf_policy.8.gz

References

Summary

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