How To Install bpftool on Rocky Linux 8

In this tutorial we learn how to install bpftool on Rocky Linux 8. bpftool is Inspection and simple manipulation of eBPF programs and maps

Introduction

In this tutorial we learn how to install bpftool on Rocky Linux 8.

What is bpftool

This package contains the bpftool, which allows inspection and simple manipulation of eBPF programs and maps.

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

Install bpftool 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 bpftool using dnf by running the following command:

sudo dnf -y install bpftool

Install bpftool 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 bpftool using yum by running the following command:

sudo yum -y install bpftool

How To Uninstall bpftool on Rocky Linux 8

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

sudo dnf remove bpftool

bpftool Package Contents on Rocky Linux 8

/etc/bash_completion.d/bpftool
/usr/sbin/bpftool
/usr/share/man/man7/bpf-helpers.7.gz
/usr/share/man/man8/bpftool-btf.8.gz
/usr/share/man/man8/bpftool-cgroup.8.gz
/usr/share/man/man8/bpftool-feature.8.gz
/usr/share/man/man8/bpftool-gen.8.gz
/usr/share/man/man8/bpftool-iter.8.gz
/usr/share/man/man8/bpftool-link.8.gz
/usr/share/man/man8/bpftool-map.8.gz
/usr/share/man/man8/bpftool-net.8.gz
/usr/share/man/man8/bpftool-perf.8.gz
/usr/share/man/man8/bpftool-prog.8.gz
/usr/share/man/man8/bpftool-struct_ops.8.gz
/usr/share/man/man8/bpftool.8.gz

References

Summary

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