How To Install bcc on Fedora 36
Introduction
In this tutorial we learn how to install bcc
on Fedora 36.
What is bcc
BCC is a toolkit for creating efficient kernel tracing and manipulation programs, and includes several useful tools and examples. It makes use of extended BPF (Berkeley Packet Filters), formally known as eBPF, a new feature that was first added to Linux 3.15. BCC makes BPF programs easier to write, with kernel instrumentation in C (and includes a C wrapper around LLVM), and front-ends in Python and lua. It is suited for many tasks, including performance analysis and network traffic control.
We can use yum
or dnf
to install bcc
on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install bcc.
Install bcc on Fedora 36 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
After updating yum database, We can install bcc
using dnf
by running the following command:
sudo dnf -y install bcc
Install bcc on Fedora 36 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
After updating yum database, We can install bcc
using yum
by running the following command:
sudo yum -y install bcc
How To Uninstall bcc on Fedora 36
To uninstall only the bcc
package we can use the following command:
sudo dnf remove bcc
bcc Package Contents on Fedora 36
/usr/lib/.build-id
/usr/lib/.build-id/93
/usr/lib/.build-id/93/63144cd174cdaa8a701fb009c0fc5831fbb203
/usr/lib/.build-id/cd
/usr/lib/.build-id/cd/1da2aebc32df98e1a58f84383024c41b410fcc
/usr/lib64/libbcc.so.0
/usr/lib64/libbcc.so.0.22.0
/usr/lib64/libbcc_bpf.so.0
/usr/lib64/libbcc_bpf.so.0.22.0
/usr/share/doc/bcc
/usr/share/doc/bcc/README.md
/usr/share/licenses/bcc
/usr/share/licenses/bcc/LICENSE.txt
References
Summary
In this tutorial we learn how to install bcc
on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).