How To Install blktrace on CentOS 8
Introduction
In this tutorial we learn how to install blktrace on CentOS 8.
What is blktrace
blktrace is a block layer IO tracing mechanism which provides detailed information about request queue operations to user space. This package includes both blktrace, a utility which gathers event traces from the kernel; and blkparse, a utility which formats trace data collected by blktrace. You should install the blktrace package if you need to gather detailed information about IO patterns.
We can use yum or dnf to install blktrace on CentOS 8. In this tutorial we discuss both methods but you only need to choose one of method to install blktrace.
Install blktrace on CentOS 8 Using yum
Update yum database with yum using the following command.
sudo yum makecache
After updating yum database, We can install blktrace using yum by running the following command:
sudo yum -y install blktrace
Install blktrace on CentOS 8 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 blktrace using dnf by running the following command:
sudo dnf -y install blktrace
How To Uninstall blktrace on CentOS 8
To uninstall only the blktrace package we can use the following command:
sudo dnf remove blktrace
References
Summary
In this tutorial we learn how to install blktrace on CentOS 8 using yum and dnf.