How To Install babeltrace2 on Fedora 34

babeltrace2 is A trace manipulation toolkit

Introduction

In this tutorial we learn how to install babeltrace2 on Fedora 34.

What is babeltrace2

The Babeltrace 2 project offers a library with a C API, Python 3 bindings, and a command-line tool which makes it very easy for mere mortals to view, convert, transform, and analyze traces. Babeltrace 2 is also the reference parser implementation of the Common Trace Format (CTF), a very versatile trace format followed by various tracers and tools such as LTTng and barectf.

We can use yum or dnf to install babeltrace2 on Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install babeltrace2.

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

sudo dnf -y install babeltrace2

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

sudo yum -y install babeltrace2

How To Uninstall babeltrace2 on Fedora 34

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

sudo dnf remove babeltrace2

babeltrace2 Package Contents on Fedora 34

/usr/bin/babeltrace2
/usr/lib/.build-id
/usr/lib/.build-id/67
/usr/lib/.build-id/67/5b4e582fd41bb914b24be741b0c377cff13140
/usr/share/doc/babeltrace2
/usr/share/doc/babeltrace2/ChangeLog
/usr/share/doc/babeltrace2/README.adoc
/usr/share/licenses/babeltrace2
/usr/share/licenses/babeltrace2/LICENSE
/usr/share/licenses/babeltrace2/gpl-2.0.txt
/usr/share/licenses/babeltrace2/mit-license.txt
/usr/share/man/man1/babeltrace2-convert.1.gz
/usr/share/man/man1/babeltrace2-help.1.gz
/usr/share/man/man1/babeltrace2-list-plugins.1.gz
/usr/share/man/man1/babeltrace2-query.1.gz
/usr/share/man/man1/babeltrace2-run.1.gz
/usr/share/man/man1/babeltrace2.1.gz
/usr/share/man/man7/babeltrace2-filter.lttng-utils.debug-info.7.gz
/usr/share/man/man7/babeltrace2-filter.utils.muxer.7.gz
/usr/share/man/man7/babeltrace2-filter.utils.trimmer.7.gz
/usr/share/man/man7/babeltrace2-intro.7.gz
/usr/share/man/man7/babeltrace2-plugin-ctf.7.gz
/usr/share/man/man7/babeltrace2-plugin-lttng-utils.7.gz
/usr/share/man/man7/babeltrace2-plugin-text.7.gz
/usr/share/man/man7/babeltrace2-plugin-utils.7.gz
/usr/share/man/man7/babeltrace2-query-babeltrace.support-info.7.gz
/usr/share/man/man7/babeltrace2-query-babeltrace.trace-infos.7.gz
/usr/share/man/man7/babeltrace2-sink.ctf.fs.7.gz
/usr/share/man/man7/babeltrace2-sink.text.details.7.gz
/usr/share/man/man7/babeltrace2-sink.text.pretty.7.gz
/usr/share/man/man7/babeltrace2-sink.utils.counter.7.gz
/usr/share/man/man7/babeltrace2-sink.utils.dummy.7.gz
/usr/share/man/man7/babeltrace2-source.ctf.fs.7.gz
/usr/share/man/man7/babeltrace2-source.ctf.lttng-live.7.gz
/usr/share/man/man7/babeltrace2-source.text.dmesg.7.gz

References

Summary

In this tutorial we learn how to install babeltrace2 on Fedora 34 using yum and dnf.