How To Install kernelshark on Fedora 34
Introduction
In this tutorial we learn how to install kernelshark
on Fedora 34.
What is kernelshark
KernelShark is a front end reader of trace-cmd output. “trace-cmd record” and “trace-cmd extract” create a trace.dat (trace-cmd.dat) file. kernelshark can read this file and produce a graph and list view of its data.
We can use yum
or dnf
to install kernelshark
on Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install kernelshark.
Install kernelshark on Fedora 34 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
The output should look something like this:
Fedora 34 - x86_64 20 kB/s | 6.6 kB 00:00
Fedora 34 openh264 (From Cisco) - x86_64 1.4 kB/s | 989 B 00:00
Fedora Modular 34 - x86_64 68 kB/s | 6.5 kB 00:00
Fedora 34 - x86_64 - Updates 3.5 kB/s | 6.2 kB 00:01
Fedora Modular 34 - x86_64 - Updates 17 kB/s | 5.9 kB 00:00
Metadata cache created.
After updating yum database, We can install kernelshark
using dnf
by running the following command:
sudo dnf -y install kernelshark
Install kernelshark on Fedora 34 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
The output should look something like this:
Fedora 34 - x86_64 20 kB/s | 6.6 kB 00:00
Fedora 34 openh264 (From Cisco) - x86_64 1.4 kB/s | 989 B 00:00
Fedora Modular 34 - x86_64 68 kB/s | 6.5 kB 00:00
Fedora 34 - x86_64 - Updates 3.5 kB/s | 6.2 kB 00:01
Fedora Modular 34 - x86_64 - Updates 17 kB/s | 5.9 kB 00:00
Metadata cache created.
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 Fedora 34
To uninstall only the kernelshark
package we can use the following command:
sudo dnf remove kernelshark
kernelshark Package Contents on Fedora 34
/usr/bin/kernelshark
/usr/bin/kshark-record
/usr/bin/kshark-su-record
/usr/lib/.build-id
/usr/lib/.build-id/0c
/usr/lib/.build-id/0c/77d4df9745a299ca78185614199309108734e3
/usr/lib/.build-id/14
/usr/lib/.build-id/14/d8317f414c9e890cab5670db65f567483fa94b
/usr/lib/.build-id/1d
/usr/lib/.build-id/1d/0abbf6071acff62d8c4acf4a0e304d43670842
/usr/lib/.build-id/3e
/usr/lib/.build-id/3e/f520d5189b8d54880cf2add0fdfc7c359a7205
/usr/lib/.build-id/d0
/usr/lib/.build-id/d0/1f8a9d42c384d7cfe3b2b62a6d47b246829be8
/usr/lib/.build-id/ea
/usr/lib/.build-id/ea/9e6e1790061fa4a3bb3a0b193930a3375d2cf6
/usr/lib/.build-id/ff
/usr/lib/.build-id/ff/3943946f967f55df8091e9f91cda1897ca91bd
/usr/lib64/kernelshark
/usr/lib64/kernelshark/libkshark-gui.so.1.2.0
/usr/lib64/kernelshark/libkshark-plot.so.1.2.0
/usr/lib64/kernelshark/libkshark.so.1.2.0
/usr/lib64/kernelshark/plugins
/usr/lib64/kernelshark/plugins/plugin-missed_events.so
/usr/lib64/kernelshark/plugins/plugin-sched_events.so
/usr/share/applications/kernelshark.desktop
/usr/share/doc/kernelshark
/usr/share/doc/kernelshark/COPYING.LIB
/usr/share/doc/kernelshark/README
/usr/share/icons/kernelshark
/usr/share/icons/kernelshark/KS_icon_fin.svg
/usr/share/icons/kernelshark/KS_icon_shark.svg
/usr/share/licenses/kernelshark
/usr/share/licenses/kernelshark/COPYING
/usr/share/metainfo/kernelshark.appdata.xml
/usr/share/polkit-1/actions/org.freedesktop.kshark-record.policy
References
Summary
In this tutorial we learn how to install kernelshark
on Fedora 34 using yum and dnf.