How To Install golang-github-gorilla-context-devel.x86_64 on Amazon Linux 2

In this tutorial we learn how to install golang-github-gorilla-context-devel.x86_64 in Amazon Linux 2. golang-github-gorilla-context-devel.x86_64 is A golang registry for global request variables

Introduction

In this tutorial we learn how to install golang-github-gorilla-context-devel.x86_64 on Amazon Linux 2.

What is golang-github-gorilla-context-devel.x86_64

Package gorilla/context stores values shared during a request lifetime. For example, a router can set variables extracted from the URL and later application handlers can access those values, or it can be used to store sessions values to be saved at the end of a request. There are several other common uses. This package contains library source intended for building other packages which use gorilla/context.

We can use yum to install golang-github-gorilla-context-devel.x86_64 on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install golang-github-gorilla-context-devel.x86_64.

Install golang-github-gorilla-context-devel.x86_64 on Amazon Linux 2 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-context-devel.x86_64 using yum by running the following command:

sudo yum -y install golang-github-gorilla-context-devel.x86_64

How To Uninstall golang-github-gorilla-context-devel.x86_64 on Amazon Linux 2

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

sudo yum remove golang-github-gorilla-context-devel.x86_64

golang-github-gorilla-context-devel.x86_64 Package Contents on Amazon Linux 2

/usr/share/doc/golang-github-gorilla-context-devel-0
/usr/share/doc/golang-github-gorilla-context-devel-0/LICENSE
/usr/share/doc/golang-github-gorilla-context-devel-0/README.md
/usr/share/gocode
/usr/share/gocode/src
/usr/share/gocode/src/github.com
/usr/share/gocode/src/github.com/gorilla
/usr/share/gocode/src/github.com/gorilla/context
/usr/share/gocode/src/github.com/gorilla/context/context.go
/usr/share/gocode/src/github.com/gorilla/context/context_test.go
/usr/share/gocode/src/github.com/gorilla/context/doc.go

References

Summary

In this tutorial we learn how to install golang-github-gorilla-context-devel.x86_64 on Amazon Linux 2 using yum.