How To Install libbpf-cargo on Fedora 36
Introduction
In this tutorial we learn how to install libbpf-cargo
on Fedora 36.
What is libbpf-cargo
Cargo plugin to build bpf programs.
We can use yum
or dnf
to install libbpf-cargo
on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install libbpf-cargo.
Install libbpf-cargo 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 libbpf-cargo
using dnf
by running the following command:
sudo dnf -y install libbpf-cargo
Install libbpf-cargo 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 libbpf-cargo
using yum
by running the following command:
sudo yum -y install libbpf-cargo
How To Uninstall libbpf-cargo on Fedora 36
To uninstall only the libbpf-cargo
package we can use the following command:
sudo dnf remove libbpf-cargo
libbpf-cargo Package Contents on Fedora 36
/usr/bin/cargo-libbpf
/usr/lib/.build-id
/usr/lib/.build-id/04
/usr/lib/.build-id/04/d7cb8a4009cb1e1972775ebdc912d65b42ccec
/usr/share/doc/libbpf-cargo
/usr/share/doc/libbpf-cargo/README.md
/usr/share/licenses/libbpf-cargo
/usr/share/licenses/libbpf-cargo/LICENSE
/usr/share/licenses/libbpf-cargo/LICENSE.BSD-2-Clause
/usr/share/licenses/libbpf-cargo/LICENSE.LPGL-2.1
References
Summary
In this tutorial we learn how to install libbpf-cargo
on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).