How To Install trace-cmd on CentOS 8
Introduction
In this tutorial we learn how to install trace-cmd
on CentOS 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 CentOS 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 CentOS 8 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
The output should look something like this:
CentOS Linux 8 - AppStream 43 kB/s | 4.3 kB 00:00
CentOS Linux 8 - BaseOS 65 kB/s | 3.9 kB 00:00
CentOS Linux 8 - ContinuousRelease 43 kB/s | 3.0 kB 00:00
CentOS Linux 8 - Extras 23 kB/s | 1.5 kB 00:00
CentOS Linux 8 - FastTrack 40 kB/s | 3.0 kB 00:00
CentOS Linux 8 - HighAvailability 36 kB/s | 3.9 kB 00:00
CentOS Linux 8 - Plus 24 kB/s | 1.5 kB 00:00
CentOS Linux 8 - PowerTools 50 kB/s | 4.3 kB 00:00
Extra Packages for Enterprise Linux Modular 8 - x86_64 13 kB/s | 9.2 kB 00:00
Extra Packages for Enterprise Linux 8 - x86_64 24 kB/s | 8.5 kB 00:00
Metadata cache created.
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 CentOS 8 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
The output should look something like this:
CentOS Linux 8 - AppStream 43 kB/s | 4.3 kB 00:00
CentOS Linux 8 - BaseOS 65 kB/s | 3.9 kB 00:00
CentOS Linux 8 - ContinuousRelease 43 kB/s | 3.0 kB 00:00
CentOS Linux 8 - Extras 23 kB/s | 1.5 kB 00:00
CentOS Linux 8 - FastTrack 40 kB/s | 3.0 kB 00:00
CentOS Linux 8 - HighAvailability 36 kB/s | 3.9 kB 00:00
CentOS Linux 8 - Plus 24 kB/s | 1.5 kB 00:00
CentOS Linux 8 - PowerTools 50 kB/s | 4.3 kB 00:00
Extra Packages for Enterprise Linux Modular 8 - x86_64 13 kB/s | 9.2 kB 00:00
Extra Packages for Enterprise Linux 8 - x86_64 24 kB/s | 8.5 kB 00:00
Metadata cache created.
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 CentOS 8
To uninstall only the trace-cmd
package we can use the following command:
sudo dnf remove trace-cmd
trace-cmd Package Contents on CentOS 8
/etc/sysconfig/trace-cmd.conf
/usr/bin/trace-cmd
/usr/lib/.build-id
/usr/lib/.build-id/04
/usr/lib/.build-id/04/e958a8f9287fd12e6cb25bd829c9bc99bcaf36
/usr/lib/.build-id/06
/usr/lib/.build-id/06/91cab0d4f093d7c828f238dc1217a1727bb3be
/usr/lib/.build-id/4b
/usr/lib/.build-id/4b/688c65fd78c37147afd1e4883c9ec1d7726d90
/usr/lib/.build-id/5e
/usr/lib/.build-id/5e/d31f0e8603c52360ac424bef3e0c90aaed16e3
/usr/lib/.build-id/75
/usr/lib/.build-id/75/87ea208c2b5e78b97abb9601d9ec9a0d5b6e33
/usr/lib/.build-id/8e
/usr/lib/.build-id/8e/29b95bf80a45aa71561fae664b9eaa5219fafa
/usr/lib/.build-id/a0
/usr/lib/.build-id/a0/b754d22baf05b0decf9eb3baa694c6a7da951e
/usr/lib/.build-id/a2
/usr/lib/.build-id/a2/3795741eb58e0f7b6a4d570dfa1a65fb3a5eb7
/usr/lib/.build-id/a4
/usr/lib/.build-id/a4/1d157fd1115cb0ac3eacb61010b8b786f37755
/usr/lib/.build-id/a4/5d0cdf746e539ae577df73ba60b8ea0bcb1f79
/usr/lib/.build-id/a5
/usr/lib/.build-id/a5/10bf20498592f62673d77f594fcc89627b788f
/usr/lib/.build-id/f3
/usr/lib/.build-id/f3/68a7f31fcba60c03da311ac01cc323affb78a3
/usr/lib/.build-id/f9
/usr/lib/.build-id/f9/73b29433e77904f9f94cc42715788efa643e89
/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 CentOS 8 using yum and dnf.