How To Install golang-github-gorilla-csrf-devel on Fedora 36

In this tutorial we learn how to install golang-github-gorilla-csrf-devel in Fedora 36. golang-github-gorilla-csrf-devel is Cross Site Request Forgery (CSRF) prevention middleware

Introduction

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

What is golang-github-gorilla-csrf-devel

Gorilla/csrf provides Cross Site Request Forgery (CSRF) prevention middleware for Go web applications & services. This package contains the source code needed for building packages that reference the following Go import paths – github.com/gorilla/csrf

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

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

sudo dnf -y install golang-github-gorilla-csrf-devel

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

sudo yum -y install golang-github-gorilla-csrf-devel

How To Uninstall golang-github-gorilla-csrf-devel on Fedora 36

To uninstall only the golang-github-gorilla-csrf-devel package we can use the following command:

sudo dnf remove golang-github-gorilla-csrf-devel

golang-github-gorilla-csrf-devel Package Contents on Fedora 36

/usr/share/doc/golang-github-gorilla-csrf-devel
/usr/share/doc/golang-github-gorilla-csrf-devel/AUTHORS
/usr/share/doc/golang-github-gorilla-csrf-devel/README.md
/usr/share/gocode/src/github.com
/usr/share/gocode/src/github.com/gorilla
/usr/share/gocode/src/github.com/gorilla/csrf
/usr/share/gocode/src/github.com/gorilla/csrf/.goipath
/usr/share/gocode/src/github.com/gorilla/csrf/README.md
/usr/share/gocode/src/github.com/gorilla/csrf/context.go
/usr/share/gocode/src/github.com/gorilla/csrf/csrf.go
/usr/share/gocode/src/github.com/gorilla/csrf/csrf_test.go
/usr/share/gocode/src/github.com/gorilla/csrf/doc.go
/usr/share/gocode/src/github.com/gorilla/csrf/go.mod
/usr/share/gocode/src/github.com/gorilla/csrf/helpers.go
/usr/share/gocode/src/github.com/gorilla/csrf/helpers_test.go
/usr/share/gocode/src/github.com/gorilla/csrf/options.go
/usr/share/gocode/src/github.com/gorilla/csrf/options_test.go
/usr/share/gocode/src/github.com/gorilla/csrf/store.go
/usr/share/gocode/src/github.com/gorilla/csrf/store_legacy.go
/usr/share/gocode/src/github.com/gorilla/csrf/store_legacy_test.go
/usr/share/gocode/src/github.com/gorilla/csrf/store_test.go
/usr/share/licenses/golang-github-gorilla-csrf-devel
/usr/share/licenses/golang-github-gorilla-csrf-devel/LICENSE

References

Summary

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