How To Install golang-github-nytimes-gziphandler-devel on Fedora 36

In this tutorial we learn how to install golang-github-nytimes-gziphandler-devel in Fedora 36. golang-github-nytimes-gziphandler-devel is Go middleware to gzip HTTP responses

Introduction

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

What is golang-github-nytimes-gziphandler-devel

This is a tiny Go package which wraps HTTP handlers to transparently gzip the response body, for clients which support it. Although it’s usually simpler to leave that to a reverse proxy (like nginx or Varnish), this package is useful when that’s undesirable. This package contains the source code needed for building packages that reference the following Go import paths – github.com/NYTimes/gziphandler

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

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

sudo dnf -y install golang-github-nytimes-gziphandler-devel

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

sudo yum -y install golang-github-nytimes-gziphandler-devel

How To Uninstall golang-github-nytimes-gziphandler-devel on Fedora 36

To uninstall only the golang-github-nytimes-gziphandler-devel package we can use the following command:

sudo dnf remove golang-github-nytimes-gziphandler-devel

golang-github-nytimes-gziphandler-devel Package Contents on Fedora 36

/usr/share/doc/golang-github-nytimes-gziphandler-devel
/usr/share/doc/golang-github-nytimes-gziphandler-devel/CODE_OF_CONDUCT.md
/usr/share/doc/golang-github-nytimes-gziphandler-devel/CONTRIBUTING.md
/usr/share/doc/golang-github-nytimes-gziphandler-devel/README.md
/usr/share/gocode/src/github.com
/usr/share/gocode/src/github.com/NYTimes
/usr/share/gocode/src/github.com/NYTimes/gziphandler
/usr/share/gocode/src/github.com/NYTimes/gziphandler/.goipath
/usr/share/gocode/src/github.com/NYTimes/gziphandler/CODE_OF_CONDUCT.md
/usr/share/gocode/src/github.com/NYTimes/gziphandler/CONTRIBUTING.md
/usr/share/gocode/src/github.com/NYTimes/gziphandler/README.md
/usr/share/gocode/src/github.com/NYTimes/gziphandler/go.mod
/usr/share/gocode/src/github.com/NYTimes/gziphandler/gzip.go
/usr/share/gocode/src/github.com/NYTimes/gziphandler/gzip_go18.go
/usr/share/gocode/src/github.com/NYTimes/gziphandler/gzip_go18_test.go
/usr/share/gocode/src/github.com/NYTimes/gziphandler/gzip_test.go
/usr/share/licenses/golang-github-nytimes-gziphandler-devel
/usr/share/licenses/golang-github-nytimes-gziphandler-devel/LICENSE

References

Summary

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