How To Install xdp-tools on Fedora 36

In this tutorial we learn how to install xdp-tools in Fedora 36. xdp-tools is Utilities and example programs for use with XDP

Introduction

In this tutorial we learn how to install xdp-tools on Fedora 36.

What is xdp-tools

Utilities and example programs for use with XDP

We can use yum or dnf to install xdp-tools on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install xdp-tools.

Install xdp-tools on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install xdp-tools

Install xdp-tools on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install xdp-tools

How To Uninstall xdp-tools on Fedora 36

To uninstall only the xdp-tools package we can use the following command:

sudo dnf remove xdp-tools

xdp-tools Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/0a
/usr/lib/.build-id/0a/e2ae1ee7ea98fd7c1944dbc976d0ed3ced40bd
/usr/lib/.build-id/55
/usr/lib/.build-id/55/0d1320a508daa5e62af7fe81c97519c07fdb6e
/usr/lib/.build-id/70
/usr/lib/.build-id/70/f992f0d3263548ad371feb03c58b3c5d9ef197
/usr/lib/.build-id/eb
/usr/lib/.build-id/eb/cf3b22ba979c513d813494c9609b71659355eb
/usr/lib64/bpf/xdpdump_bpf.o
/usr/lib64/bpf/xdpdump_xdp.o
/usr/lib64/bpf/xdpfilt_alw_all.o
/usr/lib64/bpf/xdpfilt_alw_eth.o
/usr/lib64/bpf/xdpfilt_alw_ip.o
/usr/lib64/bpf/xdpfilt_alw_tcp.o
/usr/lib64/bpf/xdpfilt_alw_udp.o
/usr/lib64/bpf/xdpfilt_dny_all.o
/usr/lib64/bpf/xdpfilt_dny_eth.o
/usr/lib64/bpf/xdpfilt_dny_ip.o
/usr/lib64/bpf/xdpfilt_dny_tcp.o
/usr/lib64/bpf/xdpfilt_dny_udp.o
/usr/lib64/bpf/xsk_def_xdp_prog.o
/usr/lib64/bpf/xsk_def_xdp_prog_5.3.o
/usr/sbin/xdp-filter
/usr/sbin/xdp-loader
/usr/sbin/xdpdump
/usr/share/licenses/xdp-tools
/usr/share/licenses/xdp-tools/BSD-2-Clause
/usr/share/licenses/xdp-tools/GPL-2.0
/usr/share/licenses/xdp-tools/LGPL-2.1
/usr/share/man/man8/xdp-filter.8.gz
/usr/share/man/man8/xdp-loader.8.gz
/usr/share/man/man8/xdpdump.8.gz
/usr/share/xdp-tools
/usr/share/xdp-tools/run_tests.sh
/usr/share/xdp-tools/setup-netns-env.sh
/usr/share/xdp-tools/test-tool
/usr/share/xdp-tools/test_config.sh
/usr/share/xdp-tools/test_long_func_name.o
/usr/share/xdp-tools/test_runner.sh
/usr/share/xdp-tools/tests
/usr/share/xdp-tools/tests/xdp-filter
/usr/share/xdp-tools/tests/xdp-filter/common.py
/usr/share/xdp-tools/tests/xdp-filter/test-xdp-filter.sh
/usr/share/xdp-tools/tests/xdp-filter/test_basic.py
/usr/share/xdp-tools/tests/xdp-filter/test_slow.py
/usr/share/xdp-tools/tests/xdp-loader
/usr/share/xdp-tools/tests/xdp-loader/test-xdp-loader.sh
/usr/share/xdp-tools/tests/xdpdump
/usr/share/xdp-tools/tests/xdpdump/test-xdpdump.sh
/usr/share/xdp-tools/xdp_drop.o
/usr/share/xdp-tools/xdp_pass.o

References

Summary

In this tutorial we learn how to install xdp-tools on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).