How To Install golang-github-cmd-devel on Fedora 36

In this tutorial we learn how to install golang-github-cmd-devel in Fedora 36. golang-github-cmd-devel is Go library wrapper around os/exec.Cmd

Introduction

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

What is golang-github-cmd-devel

This package is a small but very useful wrapper around os/exec.Cmd for Linux and macOS that makes it safe and simple to run external commands in highly concurrent, asynchronous, real-time applications. This package contains the source code needed for building packages that reference the following Go import paths – github.com/go-cmd/cmd

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

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

sudo dnf -y install golang-github-cmd-devel

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

sudo yum -y install golang-github-cmd-devel

How To Uninstall golang-github-cmd-devel on Fedora 36

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

sudo dnf remove golang-github-cmd-devel

golang-github-cmd-devel Package Contents on Fedora 36

/usr/share/doc/golang-github-cmd-devel
/usr/share/doc/golang-github-cmd-devel/README.md
/usr/share/gocode/src/github.com
/usr/share/gocode/src/github.com/go-cmd
/usr/share/gocode/src/github.com/go-cmd/cmd
/usr/share/gocode/src/github.com/go-cmd/cmd/.goipath
/usr/share/gocode/src/github.com/go-cmd/cmd/CHANGELOG.md
/usr/share/gocode/src/github.com/go-cmd/cmd/README.md
/usr/share/gocode/src/github.com/go-cmd/cmd/SECURITY.md
/usr/share/gocode/src/github.com/go-cmd/cmd/cmd.go
/usr/share/gocode/src/github.com/go-cmd/cmd/cmd_darwin.go
/usr/share/gocode/src/github.com/go-cmd/cmd/cmd_freebsd.go
/usr/share/gocode/src/github.com/go-cmd/cmd/cmd_linux.go
/usr/share/gocode/src/github.com/go-cmd/cmd/cmd_test.go
/usr/share/gocode/src/github.com/go-cmd/cmd/cmd_windows.go
/usr/share/gocode/src/github.com/go-cmd/cmd/cmd_windows_internal_test.go
/usr/share/gocode/src/github.com/go-cmd/cmd/cmd_windows_test.go
/usr/share/gocode/src/github.com/go-cmd/cmd/go.mod
/usr/share/licenses/golang-github-cmd-devel
/usr/share/licenses/golang-github-cmd-devel/LICENSE

References

Summary

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