How To Install golang-gopkg-yaml-devel-v2 on CentOS 7

In this tutorial we learn how to install golang-gopkg-yaml-devel-v2 on CentOS 7. golang-gopkg-yaml-devel-v2 is Enables Go programs to comfortably encode and decode YAML values

Introduction

In this tutorial we learn how to install golang-gopkg-yaml-devel-v2 on CentOS 7.

What is golang-gopkg-yaml-devel-v2

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 library source intended for building other packages which use import path with gopkg.in/v2/yaml prefix.

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

Install golang-gopkg-yaml-devel-v2 on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install golang-gopkg-yaml-devel-v2 using yum by running the following command:

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

Install golang-gopkg-yaml-devel-v2 on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

After updating yum database, We can install golang-gopkg-yaml-devel-v2 using dnf by running the following command:

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

How To Uninstall golang-gopkg-yaml-devel-v2 on CentOS 7

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

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

References

Summary

In this tutorial we learn how to install golang-gopkg-yaml-devel-v2 on CentOS 7 using yum and dnf.