How To Install golang-github-shurcool-vfsgen on Fedora 36

In this tutorial we learn how to install golang-github-shurcool-vfsgen in Fedora 36. golang-github-shurcool-vfsgen is Takes an input http.FileSystem and generates code that statically implements it

Introduction

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

What is golang-github-shurcool-vfsgen

Package Vfsgen takes an http.FileSystem (likely at go generate time) and generates Go code that statically implements the provided http.FileSystem.

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

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

sudo dnf -y install golang-github-shurcool-vfsgen

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

sudo yum -y install golang-github-shurcool-vfsgen

How To Uninstall golang-github-shurcool-vfsgen on Fedora 36

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

sudo dnf remove golang-github-shurcool-vfsgen

golang-github-shurcool-vfsgen Package Contents on Fedora 36

/usr/bin/vfsgendev
/usr/lib/.build-id
/usr/lib/.build-id/47
/usr/lib/.build-id/47/0cab4d39ed5f9022e23523ab3b5be55ad9e3e2
/usr/share/doc/golang-github-shurcool-vfsgen
/usr/share/doc/golang-github-shurcool-vfsgen/CONTRIBUTING.md
/usr/share/doc/golang-github-shurcool-vfsgen/README.md
/usr/share/licenses/golang-github-shurcool-vfsgen
/usr/share/licenses/golang-github-shurcool-vfsgen/LICENSE

References

Summary

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