How To Install iotop-c on Rocky Linux 8

In this tutorial we learn how to install iotop-c on Rocky Linux 8. iotop-c is Simple top-like I/O monitor (implemented in C)

Introduction

In this tutorial we learn how to install iotop-c on Rocky Linux 8.

What is iotop-c

iotop-c does for I/O usage what top(1) does for CPU usage. It watches I/O usage information output by the Linux kernel and displays a table of current I/O usage by processes on the system. It is handy for answering the question “Why is the disk churning so much?”. iotop-c requires a Linux kernel built with the CONFIG_TASKSTATS, CONFIG_TASK_DELAY_ACCT, CONFIG_TASK_IO_ACCOUNTING and CONFIG_VM_EVENT_COUNTERS config options on. iotop-c is an alternative re-implementation of iotop in C, optimized for performance. Normally a monitoring tool intended to be used on a system under heavy stress should use the least additional resources as possible.

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

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

sudo dnf -y install iotop-c

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

sudo yum -y install iotop-c

How To Uninstall iotop-c on Rocky Linux 8

To uninstall only the iotop-c package we can use the following command:

sudo dnf remove iotop-c

iotop-c Package Contents on Rocky Linux 8

/usr/lib/.build-id
/usr/lib/.build-id/c2
/usr/lib/.build-id/c2/7246b4ff667b8d562663f0560c35539611d2d1
/usr/sbin/iotop-c
/usr/share/licenses/iotop-c
/usr/share/licenses/iotop-c/COPYING
/usr/share/licenses/iotop-c/LICENSE
/usr/share/man/man8/iotop-c.8.gz

References

Summary

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