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

In this tutorial we learn how to install rust-libbpf-cargo-devel in Fedora 36. rust-libbpf-cargo-devel is Cargo plugin to build bpf programs

Introduction

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

What is rust-libbpf-cargo-devel

Cargo plugin to build bpf programs. This package contains library source intended for building other packages which use the “libbpf-cargo” crate.

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

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

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

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

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

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

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

sudo dnf remove rust-libbpf-cargo-devel

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

/usr/share/cargo/registry/libbpf-cargo-0.10.0
/usr/share/cargo/registry/libbpf-cargo-0.10.0/.cargo-checksum.json
/usr/share/cargo/registry/libbpf-cargo-0.10.0/Cargo.toml
/usr/share/cargo/registry/libbpf-cargo-0.10.0/LICENSE
/usr/share/cargo/registry/libbpf-cargo-0.10.0/LICENSE.BSD-2-Clause
/usr/share/cargo/registry/libbpf-cargo-0.10.0/LICENSE.LPGL-2.1
/usr/share/cargo/registry/libbpf-cargo-0.10.0/README.md
/usr/share/cargo/registry/libbpf-cargo-0.10.0/src
/usr/share/cargo/registry/libbpf-cargo-0.10.0/src/btf
/usr/share/cargo/registry/libbpf-cargo-0.10.0/src/btf/btf.rs
/usr/share/cargo/registry/libbpf-cargo-0.10.0/src/btf/c_types.rs
/usr/share/cargo/registry/libbpf-cargo-0.10.0/src/btf/mod.rs
/usr/share/cargo/registry/libbpf-cargo-0.10.0/src/btf/types.rs
/usr/share/cargo/registry/libbpf-cargo-0.10.0/src/build.rs
/usr/share/cargo/registry/libbpf-cargo-0.10.0/src/gen.rs
/usr/share/cargo/registry/libbpf-cargo-0.10.0/src/lib.rs
/usr/share/cargo/registry/libbpf-cargo-0.10.0/src/main.rs
/usr/share/cargo/registry/libbpf-cargo-0.10.0/src/make.rs
/usr/share/cargo/registry/libbpf-cargo-0.10.0/src/metadata.rs
/usr/share/cargo/registry/libbpf-cargo-0.10.0/src/test.rs
/usr/share/cargo/registry/libbpf-cargo-0.10.0/test_data
/usr/share/cargo/registry/libbpf-cargo-0.10.0/test_data/vmlinux.h
/usr/share/doc/rust-libbpf-cargo-devel
/usr/share/doc/rust-libbpf-cargo-devel/README.md
/usr/share/licenses/rust-libbpf-cargo-devel
/usr/share/licenses/rust-libbpf-cargo-devel/LICENSE
/usr/share/licenses/rust-libbpf-cargo-devel/LICENSE.BSD-2-Clause
/usr/share/licenses/rust-libbpf-cargo-devel/LICENSE.LPGL-2.1

References

Summary

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