How To Install bindgen on Fedora 36

In this tutorial we learn how to install bindgen in Fedora 36. bindgen is Automatically generates Rust FFI bindings to C and C++ libraries

Introduction

In this tutorial we learn how to install bindgen on Fedora 36.

What is bindgen

Automatically generates Rust FFI bindings to C and C++ libraries.

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

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

sudo dnf -y install bindgen

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

sudo yum -y install bindgen

How To Uninstall bindgen on Fedora 36

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

sudo dnf remove bindgen

bindgen Package Contents on Fedora 36

/usr/bin/bindgen
/usr/lib/.build-id
/usr/lib/.build-id/68
/usr/lib/.build-id/68/dc2fa3a806d1aae9af6efccff6a0fd203ea7e9
/usr/share/doc/bindgen
/usr/share/doc/bindgen/README.md
/usr/share/licenses/bindgen
/usr/share/licenses/bindgen/LICENSE

References

Summary

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