How To Install bcc-devel on Rocky Linux 8

In this tutorial we learn how to install bcc-devel on Rocky Linux 8. bcc-devel is Shared library for BPF Compiler Collection (BCC)

Introduction

In this tutorial we learn how to install bcc-devel on Rocky Linux 8.

What is bcc-devel

The bcc-devel package contains libraries and header files for developing application that use BPF Compiler Collection (BCC).

We can use yum or dnf to install bcc-devel on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install bcc-devel.

Install bcc-devel on Rocky Linux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install bcc-devel using dnf by running the following command:

sudo dnf -y install bcc-devel

Install bcc-devel on Rocky Linux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install bcc-devel

How To Uninstall bcc-devel on Rocky Linux 8

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

sudo dnf remove bcc-devel

bcc-devel Package Contents on Rocky Linux 8

/usr/include/bcc
/usr/include/bcc/BPF.h
/usr/include/bcc/BPFTable.h
/usr/include/bcc/bcc_common.h
/usr/include/bcc/bcc_elf.h
/usr/include/bcc/bcc_exception.h
/usr/include/bcc/bcc_proc.h
/usr/include/bcc/bcc_syms.h
/usr/include/bcc/bcc_usdt.h
/usr/include/bcc/bcc_version.h
/usr/include/bcc/bpf_module.h
/usr/include/bcc/compat
/usr/include/bcc/compat/linux
/usr/include/bcc/compat/linux/bpf.h
/usr/include/bcc/compat/linux/bpf_common.h
/usr/include/bcc/compat/linux/btf.h
/usr/include/bcc/compat/linux/if_link.h
/usr/include/bcc/compat/linux/if_xdp.h
/usr/include/bcc/compat/linux/netlink.h
/usr/include/bcc/file_desc.h
/usr/include/bcc/libbpf.h
/usr/include/bcc/perf_reader.h
/usr/include/bcc/table_desc.h
/usr/include/bcc/table_storage.h
/usr/lib64/libbcc-no-libbpf.so
/usr/lib64/libbcc.so
/usr/lib64/libbcc_bpf.so
/usr/lib64/pkgconfig/libbcc.pc

References

Summary

In this tutorial we learn how to install bcc-devel on Rocky Linux 8 using yum and dnf.