How To Install rust-libbpf-sys-devel on Fedora 36

In this tutorial we learn how to install rust-libbpf-sys-devel in Fedora 36. rust-libbpf-sys-devel is Rust bindings to libbpf from the Linux kernel

Introduction

In this tutorial we learn how to install rust-libbpf-sys-devel on Fedora 36.

What is rust-libbpf-sys-devel

Rust bindings to libbpf from the Linux kernel. This package contains library source intended for building other packages which use “libbpf-sys” crate.

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

Install rust-libbpf-sys-devel 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 rust-libbpf-sys-devel using dnf by running the following command:

sudo dnf -y install rust-libbpf-sys-devel

Install rust-libbpf-sys-devel 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 rust-libbpf-sys-devel using yum by running the following command:

sudo yum -y install rust-libbpf-sys-devel

How To Uninstall rust-libbpf-sys-devel on Fedora 36

To uninstall only the rust-libbpf-sys-devel package we can use the following command:

sudo dnf remove rust-libbpf-sys-devel

rust-libbpf-sys-devel Package Contents on Fedora 36

/usr/share/cargo/registry/libbpf-sys-0.5.0-2
/usr/share/cargo/registry/libbpf-sys-0.5.0-2/.cargo-checksum.json
/usr/share/cargo/registry/libbpf-sys-0.5.0-2/Cargo.toml
/usr/share/cargo/registry/libbpf-sys-0.5.0-2/LICENSE
/usr/share/cargo/registry/libbpf-sys-0.5.0-2/README.md
/usr/share/cargo/registry/libbpf-sys-0.5.0-2/bindings.c
/usr/share/cargo/registry/libbpf-sys-0.5.0-2/bindings.h
/usr/share/cargo/registry/libbpf-sys-0.5.0-2/build.rs
/usr/share/cargo/registry/libbpf-sys-0.5.0-2/rebuild.sh
/usr/share/cargo/registry/libbpf-sys-0.5.0-2/src
/usr/share/cargo/registry/libbpf-sys-0.5.0-2/src/bindings.rs
/usr/share/cargo/registry/libbpf-sys-0.5.0-2/src/lib.rs
/usr/share/cargo/registry/libbpf-sys-0.5.0-2/tests
/usr/share/cargo/registry/libbpf-sys-0.5.0-2/tests/tests.rs
/usr/share/doc/rust-libbpf-sys-devel
/usr/share/doc/rust-libbpf-sys-devel/README.md
/usr/share/licenses/rust-libbpf-sys-devel
/usr/share/licenses/rust-libbpf-sys-devel/LICENSE

References

Summary

In this tutorial we learn how to install rust-libbpf-sys-devel on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).