How To Install golang-github-fernet on Fedora 36

In this tutorial we learn how to install golang-github-fernet in Fedora 36. golang-github-fernet is Generate and verify HMAC-based authentication tokens

Introduction

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

What is golang-github-fernet

Fernet takes a user-provided message (an arbitrary sequence of bytes), a key (256 bits), and the current time, and produces a token, which contains the message in a form that can’t be read or altered without the key.

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

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

sudo dnf -y install golang-github-fernet

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

sudo yum -y install golang-github-fernet

How To Uninstall golang-github-fernet on Fedora 36

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

sudo dnf remove golang-github-fernet

golang-github-fernet Package Contents on Fedora 36

/usr/bin/fernet-keygen
/usr/bin/fernet-sign
/usr/lib/.build-id
/usr/lib/.build-id/1d
/usr/lib/.build-id/1d/e52280753b223edee9b4a1e7d045cfafa9c975
/usr/lib/.build-id/8b
/usr/lib/.build-id/8b/d75ffae0c92d156a6765ab2098f295cc224a93
/usr/share/doc/golang-github-fernet
/usr/share/doc/golang-github-fernet/Readme

References

Summary

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