How To Install blktrace on Rocky Linux 8
Introduction
In this tutorial we learn how to install blktrace on Rocky Linux 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 Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install blktrace.
Install blktrace 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 blktrace using dnf by running the following command:
sudo dnf -y install blktrace
Install blktrace 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 blktrace using yum by running the following command:
sudo yum -y install blktrace
How To Uninstall blktrace on Rocky Linux 8
To uninstall only the blktrace package we can use the following command:
sudo dnf remove blktrace
blktrace Package Contents on Rocky Linux 8
/usr/bin/blkiomon
/usr/bin/blkparse
/usr/bin/blkrawverify
/usr/bin/blktrace
/usr/bin/bno_plot.py
/usr/bin/btrace
/usr/bin/btrecord
/usr/bin/btreplay
/usr/bin/btt
/usr/bin/verify_blkparse
/usr/lib/.build-id
/usr/lib/.build-id/06
/usr/lib/.build-id/06/2339cb3d96d9292949405ce247821b9e1e73cb
/usr/lib/.build-id/3d
/usr/lib/.build-id/3d/09a93b3078ea3f7ea9fdcdaf4ce9094b0a4f4d
/usr/lib/.build-id/48
/usr/lib/.build-id/48/bb2265de8ec98781d668c201af5f53c7f39407
/usr/lib/.build-id/68
/usr/lib/.build-id/68/854a4fb485ee145150cffdbbfb2a3aa6fafc3c
/usr/lib/.build-id/99
/usr/lib/.build-id/99/541a1d1191cb193dc14b97b27903b4ae564eb9
/usr/lib/.build-id/c3
/usr/lib/.build-id/c3/ff400c7e158e4a923ebbddf2e75a85eba08479
/usr/lib/.build-id/e2
/usr/lib/.build-id/e2/9a8349324339071e79bb8f1e79ed2896672353
/usr/lib/.build-id/ff
/usr/lib/.build-id/ff/897d8b8d85d7d08ed4bd05bf49cd46f00d6bbd
/usr/share/doc/blktrace
/usr/share/doc/blktrace/COPYING
/usr/share/doc/blktrace/README
/usr/share/man/man1/blkparse.1.gz
/usr/share/man/man1/blkrawverify.1.gz
/usr/share/man/man1/bno_plot.1.gz
/usr/share/man/man1/btt.1.gz
/usr/share/man/man1/verify_blkparse.1.gz
/usr/share/man/man8/blkiomon.8.gz
/usr/share/man/man8/blktrace.8.gz
/usr/share/man/man8/btrace.8.gz
/usr/share/man/man8/btrecord.8.gz
/usr/share/man/man8/btreplay.8.gz
References
Summary
In this tutorial we learn how to install blktrace on Rocky Linux 8 using yum and dnf.