How To Install rust-bindgen-devel on Fedora 36

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

Introduction

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

What is rust-bindgen-devel

Automatically generates Rust FFI bindings to C and C++ libraries. This package contains library source intended for building other packages which use the “bindgen” crate.

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

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

sudo dnf -y install rust-bindgen-devel

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

sudo yum -y install rust-bindgen-devel

How To Uninstall rust-bindgen-devel on Fedora 36

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

sudo dnf remove rust-bindgen-devel

rust-bindgen-devel Package Contents on Fedora 36

/usr/share/cargo/registry/bindgen-0.59.2
/usr/share/cargo/registry/bindgen-0.59.2/.cargo-checksum.json
/usr/share/cargo/registry/bindgen-0.59.2/Cargo.toml
/usr/share/cargo/registry/bindgen-0.59.2/LICENSE
/usr/share/cargo/registry/bindgen-0.59.2/README.md
/usr/share/cargo/registry/bindgen-0.59.2/build.rs
/usr/share/cargo/registry/bindgen-0.59.2/csmith-fuzzing
/usr/share/cargo/registry/bindgen-0.59.2/csmith-fuzzing/README.md
/usr/share/cargo/registry/bindgen-0.59.2/src
/usr/share/cargo/registry/bindgen-0.59.2/src/callbacks.rs
/usr/share/cargo/registry/bindgen-0.59.2/src/clang.rs
/usr/share/cargo/registry/bindgen-0.59.2/src/codegen
/usr/share/cargo/registry/bindgen-0.59.2/src/codegen/bitfield_unit.rs
/usr/share/cargo/registry/bindgen-0.59.2/src/codegen/bitfield_unit_tests.rs
/usr/share/cargo/registry/bindgen-0.59.2/src/codegen/dyngen.rs
/usr/share/cargo/registry/bindgen-0.59.2/src/codegen/error.rs
/usr/share/cargo/registry/bindgen-0.59.2/src/codegen/helpers.rs
/usr/share/cargo/registry/bindgen-0.59.2/src/codegen/impl_debug.rs
/usr/share/cargo/registry/bindgen-0.59.2/src/codegen/impl_partialeq.rs
/usr/share/cargo/registry/bindgen-0.59.2/src/codegen/mod.rs
/usr/share/cargo/registry/bindgen-0.59.2/src/codegen/struct_layout.rs
/usr/share/cargo/registry/bindgen-0.59.2/src/deps.rs
/usr/share/cargo/registry/bindgen-0.59.2/src/extra_assertions.rs
/usr/share/cargo/registry/bindgen-0.59.2/src/features.rs
/usr/share/cargo/registry/bindgen-0.59.2/src/ir
/usr/share/cargo/registry/bindgen-0.59.2/src/ir/analysis
/usr/share/cargo/registry/bindgen-0.59.2/src/ir/analysis/derive.rs
/usr/share/cargo/registry/bindgen-0.59.2/src/ir/analysis/has_destructor.rs
/usr/share/cargo/registry/bindgen-0.59.2/src/ir/analysis/has_float.rs
/usr/share/cargo/registry/bindgen-0.59.2/src/ir/analysis/has_type_param_in_array.rs
/usr/share/cargo/registry/bindgen-0.59.2/src/ir/analysis/has_vtable.rs
/usr/share/cargo/registry/bindgen-0.59.2/src/ir/analysis/mod.rs
/usr/share/cargo/registry/bindgen-0.59.2/src/ir/analysis/sizedness.rs
/usr/share/cargo/registry/bindgen-0.59.2/src/ir/analysis/template_params.rs
/usr/share/cargo/registry/bindgen-0.59.2/src/ir/annotations.rs
/usr/share/cargo/registry/bindgen-0.59.2/src/ir/comment.rs
/usr/share/cargo/registry/bindgen-0.59.2/src/ir/comp.rs
/usr/share/cargo/registry/bindgen-0.59.2/src/ir/context.rs
/usr/share/cargo/registry/bindgen-0.59.2/src/ir/derive.rs
/usr/share/cargo/registry/bindgen-0.59.2/src/ir/dot.rs
/usr/share/cargo/registry/bindgen-0.59.2/src/ir/enum_ty.rs
/usr/share/cargo/registry/bindgen-0.59.2/src/ir/function.rs
/usr/share/cargo/registry/bindgen-0.59.2/src/ir/int.rs
/usr/share/cargo/registry/bindgen-0.59.2/src/ir/item.rs
/usr/share/cargo/registry/bindgen-0.59.2/src/ir/item_kind.rs
/usr/share/cargo/registry/bindgen-0.59.2/src/ir/layout.rs
/usr/share/cargo/registry/bindgen-0.59.2/src/ir/mod.rs
/usr/share/cargo/registry/bindgen-0.59.2/src/ir/module.rs
/usr/share/cargo/registry/bindgen-0.59.2/src/ir/objc.rs
/usr/share/cargo/registry/bindgen-0.59.2/src/ir/template.rs
/usr/share/cargo/registry/bindgen-0.59.2/src/ir/traversal.rs
/usr/share/cargo/registry/bindgen-0.59.2/src/ir/ty.rs
/usr/share/cargo/registry/bindgen-0.59.2/src/ir/var.rs
/usr/share/cargo/registry/bindgen-0.59.2/src/lib.rs
/usr/share/cargo/registry/bindgen-0.59.2/src/log_stubs.rs
/usr/share/cargo/registry/bindgen-0.59.2/src/main.rs
/usr/share/cargo/registry/bindgen-0.59.2/src/options.rs
/usr/share/cargo/registry/bindgen-0.59.2/src/parse.rs
/usr/share/cargo/registry/bindgen-0.59.2/src/regex_set.rs
/usr/share/cargo/registry/bindgen-0.59.2/src/time.rs
/usr/share/doc/rust-bindgen-devel
/usr/share/doc/rust-bindgen-devel/README.md
/usr/share/licenses/rust-bindgen-devel
/usr/share/licenses/rust-bindgen-devel/LICENSE

References

Summary

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