How To Install bcc.x86_64 on Amazon Linux 2

In this tutorial we learn how to install bcc.x86_64 in Amazon Linux 2. bcc.x86_64 is BPF Compiler Collection (BCC)

Introduction

In this tutorial we learn how to install bcc.x86_64 on Amazon Linux 2.

What is bcc.x86_64

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 to install bcc.x86_64 on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install bcc.x86_64.

Install bcc.x86_64 on Amazon Linux 2 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install bcc.x86_64 using yum by running the following command:

sudo yum -y install bcc.x86_64

How To Uninstall bcc.x86_64 on Amazon Linux 2

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

sudo yum remove bcc.x86_64

bcc.x86_64 Package Contents on Amazon Linux 2

/usr/lib64/libbcc-no-libbpf.so.0
/usr/lib64/libbcc-no-libbpf.so.0.18.0
/usr/lib64/libbcc.so.0
/usr/lib64/libbcc.so.0.18.0
/usr/lib64/libbcc_bpf.so.0
/usr/lib64/libbcc_bpf.so.0.18.0
/usr/share/doc/bcc-0.18.0
/usr/share/doc/bcc-0.18.0/README.md
/usr/share/licenses/bcc-0.18.0
/usr/share/licenses/bcc-0.18.0/LICENSE.txt

References

Summary

In this tutorial we learn how to install bcc.x86_64 on Amazon Linux 2 using yum.