How To Install golang-github-pierrec-cmdflag-devel on Fedora 36

In this tutorial we learn how to install golang-github-pierrec-cmdflag-devel in Fedora 36. golang-github-pierrec-cmdflag-devel is Augment the flag package with commands

Introduction

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

What is golang-github-pierrec-cmdflag-devel

Building on top of the excellent flag package from the standard library, cmdflag adds a simple way of specifying nested commands. Its intent is to blend with the usage of flag by keeping its idioms and simply augment it with commands. This package contains the source code needed for building packages that reference the following Go import paths – github.com/pierrec/cmdflag

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

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

sudo dnf -y install golang-github-pierrec-cmdflag-devel

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

sudo yum -y install golang-github-pierrec-cmdflag-devel

How To Uninstall golang-github-pierrec-cmdflag-devel on Fedora 36

To uninstall only the golang-github-pierrec-cmdflag-devel package we can use the following command:

sudo dnf remove golang-github-pierrec-cmdflag-devel

golang-github-pierrec-cmdflag-devel Package Contents on Fedora 36

/usr/share/doc/golang-github-pierrec-cmdflag-devel
/usr/share/doc/golang-github-pierrec-cmdflag-devel/README.md
/usr/share/doc/golang-github-pierrec-cmdflag-devel/examples
/usr/share/doc/golang-github-pierrec-cmdflag-devel/examples/sqldump
/usr/share/doc/golang-github-pierrec-cmdflag-devel/examples/sqldump/go.mod
/usr/share/doc/golang-github-pierrec-cmdflag-devel/examples/sqldump/go.sum
/usr/share/doc/golang-github-pierrec-cmdflag-devel/examples/sqldump/main.go
/usr/share/gocode/src/github.com
/usr/share/gocode/src/github.com/pierrec
/usr/share/gocode/src/github.com/pierrec/cmdflag
/usr/share/gocode/src/github.com/pierrec/cmdflag/.goipath
/usr/share/gocode/src/github.com/pierrec/cmdflag/README.md
/usr/share/gocode/src/github.com/pierrec/cmdflag/buildinfo.go
/usr/share/gocode/src/github.com/pierrec/cmdflag/buildinfo_1_12.go
/usr/share/gocode/src/github.com/pierrec/cmdflag/cmdflag.go
/usr/share/gocode/src/github.com/pierrec/cmdflag/cmdflag_test.go
/usr/share/gocode/src/github.com/pierrec/cmdflag/error.go
/usr/share/gocode/src/github.com/pierrec/cmdflag/example_test.go
/usr/share/gocode/src/github.com/pierrec/cmdflag/fset.go
/usr/share/gocode/src/github.com/pierrec/cmdflag/fset_1_10.go
/usr/share/gocode/src/github.com/pierrec/cmdflag/go.mod
/usr/share/gocode/src/github.com/pierrec/cmdflag/help.go
/usr/share/gocode/src/github.com/pierrec/cmdflag/usage.go
/usr/share/gocode/src/github.com/pierrec/cmdflag/version.go
/usr/share/licenses/golang-github-pierrec-cmdflag-devel
/usr/share/licenses/golang-github-pierrec-cmdflag-devel/LICENSE

References

Summary

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