How To Install cbindgen on Fedora 36

In this tutorial we learn how to install cbindgen in Fedora 36. cbindgen is Tool for generating C bindings to Rust code

Introduction

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

What is cbindgen

Tool for generating C bindings to Rust code.

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

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

sudo dnf -y install cbindgen

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

sudo yum -y install cbindgen

How To Uninstall cbindgen on Fedora 36

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

sudo dnf remove cbindgen

cbindgen Package Contents on Fedora 36

/usr/bin/cbindgen
/usr/lib/.build-id
/usr/lib/.build-id/4a
/usr/lib/.build-id/4a/43eec0bc70512496a266c27aebdd661f8c7a20
/usr/share/doc/cbindgen
/usr/share/doc/cbindgen/README.md
/usr/share/licenses/cbindgen
/usr/share/licenses/cbindgen/LICENSE

References

Summary

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