How To Install iotop-c on CentOS 7

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

Introduction

In this tutorial we learn how to install iotop-c on CentOS 7.

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 CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install iotop-c.

Install iotop-c on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

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

sudo yum -y install iotop-c

Install iotop-c on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

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

sudo dnf -y install iotop-c

How To Uninstall iotop-c on CentOS 7

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

sudo dnf remove iotop-c

References

Summary

In this tutorial we learn how to install iotop-c on CentOS 7 using yum and dnf.