How To Install golang-github-pquerna-otp-devel on Fedora 36

In this tutorial we learn how to install golang-github-pquerna-otp-devel in Fedora 36. golang-github-pquerna-otp-devel is TOTP library for Go

Introduction

In this tutorial we learn how to install golang-github-pquerna-otp-devel on Fedora 36.

What is golang-github-pquerna-otp-devel

One Time Passwords (OTPs) are an mechanism to improve security over passwords alone. When a Time-based OTP (TOTP) is stored on a user’s phone, and combined with something the user knows (Password), you have an easy on-ramp to Multi-factor authentication without adding a dependency on a SMS provider. This Password and TOTP combination is used by many popular websites including Google, Github, Facebook, Salesforce and many others. The otp library enables you to easily add TOTPs to your own application, increasing your user’s security against mass-password breaches and malware. This package contains the source code needed for building packages that reference the following Go import paths – github.com/pquerna/otp

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

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

sudo dnf -y install golang-github-pquerna-otp-devel

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

sudo yum -y install golang-github-pquerna-otp-devel

How To Uninstall golang-github-pquerna-otp-devel on Fedora 36

To uninstall only the golang-github-pquerna-otp-devel package we can use the following command:

sudo dnf remove golang-github-pquerna-otp-devel

golang-github-pquerna-otp-devel Package Contents on Fedora 36

/usr/share/doc/golang-github-pquerna-otp-devel
/usr/share/doc/golang-github-pquerna-otp-devel/README.md
/usr/share/doc/golang-github-pquerna-otp-devel/example
/usr/share/doc/golang-github-pquerna-otp-devel/example/main.go
/usr/share/gocode/src/github.com
/usr/share/gocode/src/github.com/pquerna
/usr/share/gocode/src/github.com/pquerna/otp
/usr/share/gocode/src/github.com/pquerna/otp/.goipath
/usr/share/gocode/src/github.com/pquerna/otp/README.md
/usr/share/gocode/src/github.com/pquerna/otp/doc.go
/usr/share/gocode/src/github.com/pquerna/otp/go.mod
/usr/share/gocode/src/github.com/pquerna/otp/hotp
/usr/share/gocode/src/github.com/pquerna/otp/hotp/hotp.go
/usr/share/gocode/src/github.com/pquerna/otp/hotp/hotp_test.go
/usr/share/gocode/src/github.com/pquerna/otp/interop
/usr/share/gocode/src/github.com/pquerna/otp/interop/interop.go
/usr/share/gocode/src/github.com/pquerna/otp/interop/twofactor_test.go
/usr/share/gocode/src/github.com/pquerna/otp/otp.go
/usr/share/gocode/src/github.com/pquerna/otp/otp_test.go
/usr/share/gocode/src/github.com/pquerna/otp/totp
/usr/share/gocode/src/github.com/pquerna/otp/totp/totp.go
/usr/share/gocode/src/github.com/pquerna/otp/totp/totp_test.go
/usr/share/licenses/golang-github-pquerna-otp-devel
/usr/share/licenses/golang-github-pquerna-otp-devel/LICENSE
/usr/share/licenses/golang-github-pquerna-otp-devel/NOTICE

References

Summary

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