How To Install kernelshark on Rocky Linux 8

In this tutorial we learn how to install kernelshark on Rocky Linux 8. kernelshark is GUI analysis for Ftrace data captured by trace-cmd

Introduction

In this tutorial we learn how to install kernelshark on Rocky Linux 8.

What is kernelshark

Kernelshark is the GUI frontend for analyzing data produced by ’trace-cmd extract'

We can use yum or dnf to install kernelshark on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install kernelshark.

Install kernelshark 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 kernelshark using dnf by running the following command:

sudo dnf -y install kernelshark

Install kernelshark 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 kernelshark using yum by running the following command:

sudo yum -y install kernelshark

How To Uninstall kernelshark on Rocky Linux 8

To uninstall only the kernelshark package we can use the following command:

sudo dnf remove kernelshark

kernelshark Package Contents on Rocky Linux 8

/etc/bash_completion.d/trace-cmd.bash
/usr/bin/kernelshark
/usr/bin/trace-graph
/usr/bin/trace-view
/usr/lib/.build-id
/usr/lib/.build-id/00
/usr/lib/.build-id/00/a33ed9948712d85ba8929fdf9c2f00178e881b
/usr/lib/.build-id/89
/usr/lib/.build-id/89/9b3f2368bcf97c571ce02e2d8c5c09a843226d
/usr/lib/.build-id/ed
/usr/lib/.build-id/ed/7daa6df83ff66163a897a945aed5178cb2cbca
/usr/share/applications/kernelshark.desktop
/usr/share/kernelshark
/usr/share/kernelshark/html
/usr/share/kernelshark/html/images
/usr/share/kernelshark/html/images/kshark-cursor-1.png
/usr/share/kernelshark/html/images/kshark-filter-advance-1.png
/usr/share/kernelshark/html/images/kshark-filter-del-adv.png
/usr/share/kernelshark/html/images/kshark-filter-event-adv-list.png
/usr/share/kernelshark/html/images/kshark-filter-events-sched.png
/usr/share/kernelshark/html/images/kshark-filter-events.png
/usr/share/kernelshark/html/images/kshark-filter-list-adv-irq.png
/usr/share/kernelshark/html/images/kshark-filter-sync-dialog.png
/usr/share/kernelshark/html/images/kshark-filter-sync-graph-1.png
/usr/share/kernelshark/html/images/kshark-filter-task-menu.png
/usr/share/kernelshark/html/images/kshark-filter.png
/usr/share/kernelshark/html/images/kshark-graph-info-line.png
/usr/share/kernelshark/html/images/kshark-graph-plot-area.png
/usr/share/kernelshark/html/images/kshark-graph-plot-title.png
/usr/share/kernelshark/html/images/kshark-list-adjust.png
/usr/share/kernelshark/html/images/kshark-list-enable-filter-1.png
/usr/share/kernelshark/html/images/kshark-list-graph-follow-1.png
/usr/share/kernelshark/html/images/kshark-list-graph-follow-2.png
/usr/share/kernelshark/html/images/kshark-list-info-area.png
/usr/share/kernelshark/html/images/kshark-open.png
/usr/share/kernelshark/html/images/kshark-plot-cpu-1.png
/usr/share/kernelshark/html/images/kshark-plot-cpu-2.png
/usr/share/kernelshark/html/images/kshark-plot-cpu-result.png
/usr/share/kernelshark/html/images/kshark-plot-menu.png
/usr/share/kernelshark/html/images/kshark-plot-task-measure-preempt.png
/usr/share/kernelshark/html/images/kshark-plot-task-measure.png
/usr/share/kernelshark/html/images/kshark-plot-task-result.png
/usr/share/kernelshark/html/images/kshark-plot-task-select.png
/usr/share/kernelshark/html/images/kshark-plot-task-zoom-1.png
/usr/share/kernelshark/html/images/kshark-select-a-1.png
/usr/share/kernelshark/html/images/kshark-select-b-1.png
/usr/share/kernelshark/html/images/kshark-unsync-events.png
/usr/share/kernelshark/html/images/kshark-zoom-in-2.png
/usr/share/kernelshark/html/images/kshark-zoom-in-3.png
/usr/share/kernelshark/html/images/kshark-zoom-in-select.png
/usr/share/kernelshark/html/images/kshark-zoom-out-select.png
/usr/share/kernelshark/html/index.html
/usr/share/man/man1/kernelshark.1.gz

References

Summary

In this tutorial we learn how to install kernelshark on Rocky Linux 8 using yum and dnf.