How To Install bcc-devel on CentOS 8

bcc-devel is Shared library for BPF Compiler Collection (BCC)

Introduction

In this tutorial we learn how to install bcc-devel on CentOS 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 CentOS 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 CentOS 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

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 CentOS 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

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 CentOS 8

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

sudo dnf remove bcc-devel

bcc-devel Package Contents on CentOS 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 CentOS 8 using yum and dnf.