How To Install protobuf-codegen on Fedora 36
Introduction
In this tutorial we learn how to install protobuf-codegen
on Fedora 36.
What is protobuf-codegen
Code generator for rust-protobuf. Includes a library and
protoc-gen-rust
binary. Seeprotoc-rust
andprotobuf-codegen-pure
crates.
We can use yum
or dnf
to install protobuf-codegen
on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install protobuf-codegen.
Install protobuf-codegen 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 protobuf-codegen
using dnf
by running the following command:
sudo dnf -y install protobuf-codegen
Install protobuf-codegen 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 protobuf-codegen
using yum
by running the following command:
sudo yum -y install protobuf-codegen
How To Uninstall protobuf-codegen on Fedora 36
To uninstall only the protobuf-codegen
package we can use the following command:
sudo dnf remove protobuf-codegen
protobuf-codegen Package Contents on Fedora 36
/usr/bin/protobuf-bin-gen-rust-do-not-use
/usr/bin/protoc-gen-rust
/usr/lib/.build-id
/usr/lib/.build-id/39
/usr/lib/.build-id/39/340ca652a82179549103c1529f0c46ac85dde8
/usr/lib/.build-id/8a
/usr/lib/.build-id/8a/eaafc5f4df3eef7972902e07fcc62b99457a8e
/usr/share/doc/protobuf-codegen
/usr/share/doc/protobuf-codegen/README.md
/usr/share/licenses/protobuf-codegen
/usr/share/licenses/protobuf-codegen/LICENSE.txt
References
Summary
In this tutorial we learn how to install protobuf-codegen
on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).