How To Install golang-sigs-k8s-yaml-devel on Fedora 36
Introduction
In this tutorial we learn how to install golang-sigs-k8s-yaml-devel
on Fedora 36.
What is golang-sigs-k8s-yaml-devel
A wrapper around go-yaml designed to enable a better way of handling YAML when marshaling to and from structs. In short, this library first converts YAML to JSON using go-yaml and then uses json.Marshal and json.Unmarshal to convert to or from the struct. This means that it effectively reuses the JSON struct tags as well as the custom JSON methods MarshalJSON and UnmarshalJSON unlike go-yaml. This package contains the source code needed for building packages that reference the following Go import paths – sigs.k8s.io/yaml
We can use yum
or dnf
to install golang-sigs-k8s-yaml-devel
on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install golang-sigs-k8s-yaml-devel.
Install golang-sigs-k8s-yaml-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-sigs-k8s-yaml-devel
using dnf
by running the following command:
sudo dnf -y install golang-sigs-k8s-yaml-devel
Install golang-sigs-k8s-yaml-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-sigs-k8s-yaml-devel
using yum
by running the following command:
sudo yum -y install golang-sigs-k8s-yaml-devel
How To Uninstall golang-sigs-k8s-yaml-devel on Fedora 36
To uninstall only the golang-sigs-k8s-yaml-devel
package we can use the following command:
sudo dnf remove golang-sigs-k8s-yaml-devel
golang-sigs-k8s-yaml-devel Package Contents on Fedora 36
/usr/share/doc/golang-sigs-k8s-yaml-devel
/usr/share/doc/golang-sigs-k8s-yaml-devel/CONTRIBUTING.md
/usr/share/doc/golang-sigs-k8s-yaml-devel/README.md
/usr/share/doc/golang-sigs-k8s-yaml-devel/RELEASE.md
/usr/share/gocode/src/sigs.k8s.io
/usr/share/gocode/src/sigs.k8s.io/yaml
/usr/share/gocode/src/sigs.k8s.io/yaml/.goipath
/usr/share/gocode/src/sigs.k8s.io/yaml/CONTRIBUTING.md
/usr/share/gocode/src/sigs.k8s.io/yaml/README.md
/usr/share/gocode/src/sigs.k8s.io/yaml/RELEASE.md
/usr/share/gocode/src/sigs.k8s.io/yaml/code-of-conduct.md
/usr/share/gocode/src/sigs.k8s.io/yaml/fields.go
/usr/share/gocode/src/sigs.k8s.io/yaml/go.mod
/usr/share/gocode/src/sigs.k8s.io/yaml/yaml.go
/usr/share/gocode/src/sigs.k8s.io/yaml/yaml_go110.go
/usr/share/gocode/src/sigs.k8s.io/yaml/yaml_go110_test.go
/usr/share/gocode/src/sigs.k8s.io/yaml/yaml_test.go
/usr/share/licenses/golang-sigs-k8s-yaml-devel
/usr/share/licenses/golang-sigs-k8s-yaml-devel/LICENSE
References
Summary
In this tutorial we learn how to install golang-sigs-k8s-yaml-devel
on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).