How To Install golang-github-mailru-easyjson on Fedora 36

In this tutorial we learn how to install golang-github-mailru-easyjson in Fedora 36. golang-github-mailru-easyjson is Fast JSON serializer for Go

Introduction

In this tutorial we learn how to install golang-github-mailru-easyjson on Fedora 36.

What is golang-github-mailru-easyjson

Package Easyjson provides a fast and easy way to marshal/unmarshal Go structs to/from JSON without the use of reflection. In performance tests, easyjson outperforms the standard encoding/json package by a factor of 4-5x, and other JSON encoding packages by a factor of 2-3x. Easyjson aims to keep generated Go code simple enough so that it can be easily optimized or fixed. Another goal is to provide users with the ability to customize the generated code by providing options not available with the standard encoding/json package, such as generating “snake_case” names or enabling omitempty behavior by default.

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

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

sudo dnf -y install golang-github-mailru-easyjson

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

sudo yum -y install golang-github-mailru-easyjson

How To Uninstall golang-github-mailru-easyjson on Fedora 36

To uninstall only the golang-github-mailru-easyjson package we can use the following command:

sudo dnf remove golang-github-mailru-easyjson

golang-github-mailru-easyjson Package Contents on Fedora 36

/usr/bin/easyjson
/usr/lib/.build-id
/usr/lib/.build-id/25
/usr/lib/.build-id/25/d81a67c2b3fe2603faab0b3681267f6e02d6fb
/usr/share/doc/golang-github-mailru-easyjson
/usr/share/doc/golang-github-mailru-easyjson/README.md
/usr/share/licenses/golang-github-mailru-easyjson
/usr/share/licenses/golang-github-mailru-easyjson/LICENSE

References

Summary

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