How To Install trace-cmd on Rocky Linux 8
Introduction
In this tutorial we learn how to install trace-cmd
on Rocky Linux 8.
What is trace-cmd
trace-cmd is a user interface to Ftrace. Instead of needing to use the debugfs directly, trace-cmd will handle of setting of options and tracers and will record into a data file.
We can use yum
or dnf
to install trace-cmd
on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install trace-cmd.
Install trace-cmd 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 trace-cmd
using dnf
by running the following command:
sudo dnf -y install trace-cmd
Install trace-cmd 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 trace-cmd
using yum
by running the following command:
sudo yum -y install trace-cmd
How To Uninstall trace-cmd on Rocky Linux 8
To uninstall only the trace-cmd
package we can use the following command:
sudo dnf remove trace-cmd
trace-cmd Package Contents on Rocky Linux 8
/etc/sysconfig/trace-cmd.conf
/usr/bin/trace-cmd
/usr/lib/.build-id
/usr/lib/.build-id/12
/usr/lib/.build-id/12/7e7b163d8c9a0b2c9649a4bdf98689bae56e32
/usr/lib/.build-id/1b
/usr/lib/.build-id/1b/107dc82e51fc26159cc7fe4098a075d4145f02
/usr/lib/.build-id/1d
/usr/lib/.build-id/1d/48c95bac34ba03566746f847bce6919c8f0bb4
/usr/lib/.build-id/2b
/usr/lib/.build-id/2b/ffd30b33b5537c8cf7a1c055f694996630b361
/usr/lib/.build-id/2e
/usr/lib/.build-id/2e/90466b88bf437fd0615ef52681ee8818fd9e90
/usr/lib/.build-id/46
/usr/lib/.build-id/46/7b6f8f2d5475da195edf96e7e4c1b06f504997
/usr/lib/.build-id/6e
/usr/lib/.build-id/6e/2d7ee4408c6e870fd5adddb9c7fbad8c639d20
/usr/lib/.build-id/88
/usr/lib/.build-id/88/835237fa725194379a4f4d8888e42ac9892bfc
/usr/lib/.build-id/a3
/usr/lib/.build-id/a3/a3ec8aac1ba5eb560512683afcf1be44ea42ae
/usr/lib/.build-id/c1
/usr/lib/.build-id/c1/46d4b3da81c4b1bf098e99cbf66f346a4e8cf3
/usr/lib/.build-id/cd
/usr/lib/.build-id/cd/6d6b52622fe0d085441d8a0b6579c65b482b55
/usr/lib/.build-id/ce
/usr/lib/.build-id/ce/0e78757c841f4e6aed84a4f564354db0fdd2b9
/usr/lib/.build-id/d0
/usr/lib/.build-id/d0/bd191f745ee99f39c644770c7580f1e7c2b9da
/usr/lib/systemd/system/trace-cmd.service
/usr/lib/udev/rules.d/98-trace-cmd.rules
/usr/lib64/trace-cmd
/usr/lib64/trace-cmd/plugins
/usr/lib64/trace-cmd/plugins/plugin_blk.so
/usr/lib64/trace-cmd/plugins/plugin_cfg80211.so
/usr/lib64/trace-cmd/plugins/plugin_function.so
/usr/lib64/trace-cmd/plugins/plugin_hrtimer.so
/usr/lib64/trace-cmd/plugins/plugin_jbd2.so
/usr/lib64/trace-cmd/plugins/plugin_kmem.so
/usr/lib64/trace-cmd/plugins/plugin_kvm.so
/usr/lib64/trace-cmd/plugins/plugin_mac80211.so
/usr/lib64/trace-cmd/plugins/plugin_sched_switch.so
/usr/lib64/trace-cmd/plugins/plugin_scsi.so
/usr/lib64/trace-cmd/plugins/plugin_tlb.so
/usr/lib64/trace-cmd/plugins/plugin_xen.so
/usr/share/doc/trace-cmd
/usr/share/doc/trace-cmd/COPYING
/usr/share/doc/trace-cmd/COPYING.LIB
/usr/share/doc/trace-cmd/README
/usr/share/man/man1/trace-cmd-check-events.1.gz
/usr/share/man/man1/trace-cmd-extract.1.gz
/usr/share/man/man1/trace-cmd-hist.1.gz
/usr/share/man/man1/trace-cmd-list.1.gz
/usr/share/man/man1/trace-cmd-listen.1.gz
/usr/share/man/man1/trace-cmd-mem.1.gz
/usr/share/man/man1/trace-cmd-options.1.gz
/usr/share/man/man1/trace-cmd-profile.1.gz
/usr/share/man/man1/trace-cmd-record.1.gz
/usr/share/man/man1/trace-cmd-report.1.gz
/usr/share/man/man1/trace-cmd-reset.1.gz
/usr/share/man/man1/trace-cmd-restore.1.gz
/usr/share/man/man1/trace-cmd-show.1.gz
/usr/share/man/man1/trace-cmd-snapshot.1.gz
/usr/share/man/man1/trace-cmd-split.1.gz
/usr/share/man/man1/trace-cmd-stack.1.gz
/usr/share/man/man1/trace-cmd-start.1.gz
/usr/share/man/man1/trace-cmd-stat.1.gz
/usr/share/man/man1/trace-cmd-stop.1.gz
/usr/share/man/man1/trace-cmd-stream.1.gz
/usr/share/man/man1/trace-cmd.1.gz
/usr/share/man/man5/trace-cmd.dat.5.gz
References
Summary
In this tutorial we learn how to install trace-cmd
on Rocky Linux 8 using yum and dnf.