How To Install golang-gopkg-yaml-2-devel on Fedora 36

In this tutorial we learn how to install golang-gopkg-yaml-2-devel in Fedora 36. golang-gopkg-yaml-2-devel is Yaml support for the Go language

Introduction

In this tutorial we learn how to install golang-gopkg-yaml-2-devel on Fedora 36.

What is golang-gopkg-yaml-2-devel

The yaml package enables Go programs to comfortably encode and decode YAML values. It was developed within Canonical as part of the juju project, and is based on a pure Go port of the well-known libyaml C library to parse and generate YAML data quickly and reliably. The yaml package supports most of YAML 1.1 and 1.2, including support for anchors, tags, map merging, etc. Multi-document unmarshalling is not yet implemented, and base-60 floats from YAML 1.1 are purposefully not supported since they’re a poor design and are gone in YAML 1.2. This package contains the source code needed for building packages that reference the following Go import paths – gopkg.in/yaml.v2

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

Install golang-gopkg-yaml-2-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-gopkg-yaml-2-devel using dnf by running the following command:

sudo dnf -y install golang-gopkg-yaml-2-devel

Install golang-gopkg-yaml-2-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-gopkg-yaml-2-devel using yum by running the following command:

sudo yum -y install golang-gopkg-yaml-2-devel

How To Uninstall golang-gopkg-yaml-2-devel on Fedora 36

To uninstall only the golang-gopkg-yaml-2-devel package we can use the following command:

sudo dnf remove golang-gopkg-yaml-2-devel

golang-gopkg-yaml-2-devel Package Contents on Fedora 36

/usr/share/doc/golang-gopkg-yaml-2-devel
/usr/share/doc/golang-gopkg-yaml-2-devel/README.md
/usr/share/gocode/src/gopkg.in
/usr/share/gocode/src/gopkg.in/yaml.v2
/usr/share/gocode/src/gopkg.in/yaml.v2/.goipath
/usr/share/gocode/src/gopkg.in/yaml.v2/README.md
/usr/share/gocode/src/gopkg.in/yaml.v2/apic.go
/usr/share/gocode/src/gopkg.in/yaml.v2/decode.go
/usr/share/gocode/src/gopkg.in/yaml.v2/decode_test.go
/usr/share/gocode/src/gopkg.in/yaml.v2/emitterc.go
/usr/share/gocode/src/gopkg.in/yaml.v2/encode.go
/usr/share/gocode/src/gopkg.in/yaml.v2/encode_test.go
/usr/share/gocode/src/gopkg.in/yaml.v2/example_embedded_test.go
/usr/share/gocode/src/gopkg.in/yaml.v2/go.mod
/usr/share/gocode/src/gopkg.in/yaml.v2/limit_test.go
/usr/share/gocode/src/gopkg.in/yaml.v2/parserc.go
/usr/share/gocode/src/gopkg.in/yaml.v2/readerc.go
/usr/share/gocode/src/gopkg.in/yaml.v2/resolve.go
/usr/share/gocode/src/gopkg.in/yaml.v2/scannerc.go
/usr/share/gocode/src/gopkg.in/yaml.v2/sorter.go
/usr/share/gocode/src/gopkg.in/yaml.v2/suite_test.go
/usr/share/gocode/src/gopkg.in/yaml.v2/writerc.go
/usr/share/gocode/src/gopkg.in/yaml.v2/yaml.go
/usr/share/gocode/src/gopkg.in/yaml.v2/yamlh.go
/usr/share/gocode/src/gopkg.in/yaml.v2/yamlprivateh.go
/usr/share/licenses/golang-gopkg-yaml-2-devel
/usr/share/licenses/golang-gopkg-yaml-2-devel/LICENSE
/usr/share/licenses/golang-gopkg-yaml-2-devel/LICENSE.libyaml
/usr/share/licenses/golang-gopkg-yaml-2-devel/NOTICE

References

Summary

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