How To Install golang-github-gogo-protobuf on Fedora 36

In this tutorial we learn how to install golang-github-gogo-protobuf in Fedora 36. golang-github-gogo-protobuf is Protocol buffers for Go with gadgets

Introduction

In this tutorial we learn how to install golang-github-gogo-protobuf on Fedora 36.

What is golang-github-gogo-protobuf

Gogoprotobuf is a fork of golang/protobuf with extra code generation features. This code generation is used to achieve - fast marshalling and unmarshalling - more canonical Go structures - goprotobuf compatibility - less typing by optionally generating extra helper code - peace of mind by optionally generating test and benchmark code - other serialization formats

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

Install golang-github-gogo-protobuf 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 golang-github-gogo-protobuf using dnf by running the following command:

sudo dnf -y install golang-github-gogo-protobuf

Install golang-github-gogo-protobuf 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 golang-github-gogo-protobuf using yum by running the following command:

sudo yum -y install golang-github-gogo-protobuf

How To Uninstall golang-github-gogo-protobuf on Fedora 36

To uninstall only the golang-github-gogo-protobuf package we can use the following command:

sudo dnf remove golang-github-gogo-protobuf

golang-github-gogo-protobuf Package Contents on Fedora 36

/usr/bin/conformance
/usr/bin/gogoreplace
/usr/bin/protoc-gen-combo
/usr/bin/protoc-gen-gofast
/usr/bin/protoc-gen-gogo
/usr/bin/protoc-gen-gogofast
/usr/bin/protoc-gen-gogofaster
/usr/bin/protoc-gen-gogoslick
/usr/bin/protoc-gen-gogotypes
/usr/bin/protoc-gen-gostring
/usr/bin/protoc-min-version
/usr/lib/.build-id
/usr/lib/.build-id/10
/usr/lib/.build-id/10/09919b28b72d502f322cbd70baeca9b2ad91b1
/usr/lib/.build-id/1d
/usr/lib/.build-id/1d/075840aad651a06586ce8bb9d521d3b3760bd3
/usr/lib/.build-id/30
/usr/lib/.build-id/30/4c8e2307871e10acc222bd087b85c20db2a71d
/usr/lib/.build-id/41
/usr/lib/.build-id/41/863a6f8e5520ed50de649a7c9e244180267b99
/usr/lib/.build-id/5e
/usr/lib/.build-id/5e/e0474f511b35b4188fb8aff2806781642c457f
/usr/lib/.build-id/78
/usr/lib/.build-id/78/46aa808269af222bdbb23a4a6d2415d5b7fd43
/usr/lib/.build-id/89
/usr/lib/.build-id/89/c176b3e47e510601b1bee2790595acf39879b1
/usr/lib/.build-id/9d
/usr/lib/.build-id/9d/cbd6f0e4cea780510724fff59d1ca43b500ffc
/usr/lib/.build-id/ac
/usr/lib/.build-id/ac/e6e5b40a567d794f64a6906dce76c71b2d9d69
/usr/lib/.build-id/c9
/usr/lib/.build-id/c9/504119176e60f60494ca01464f85fed4655921
/usr/lib/.build-id/fc
/usr/lib/.build-id/fc/9572ce27d24665094db1cf33032d30853964d2
/usr/share/doc/golang-github-gogo-protobuf
/usr/share/doc/golang-github-gogo-protobuf/AUTHORS
/usr/share/doc/golang-github-gogo-protobuf/CONTRIBUTORS
/usr/share/doc/golang-github-gogo-protobuf/README
/usr/share/doc/golang-github-gogo-protobuf/Readme.md
/usr/share/doc/golang-github-gogo-protobuf/bench.md
/usr/share/doc/golang-github-gogo-protobuf/custom_types.md
/usr/share/doc/golang-github-gogo-protobuf/extensions.md
/usr/share/licenses/golang-github-gogo-protobuf
/usr/share/licenses/golang-github-gogo-protobuf/LICENSE

References

Summary

In this tutorial we learn how to install golang-github-gogo-protobuf on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).