How To Install bcc on AlmaLinux 8

In this tutorial we learn how to install bcc in AlmaLinux 8. bcc is BPF Compiler Collection (BCC)

Introduction

In this tutorial we learn how to install bcc on AlmaLinux 8.

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 AlmaLinux 8. In this tutorial we discuss both methods but you only need to choose one of method to install bcc.

Install bcc on AlmaLinux 8 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 AlmaLinux 8 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 AlmaLinux 8

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

sudo dnf remove bcc

References

Summary

In this tutorial we learn how to install bcc on AlmaLinux 8 using yum and dnf.