How To Install golang-gopkg-yaml-devel on CentOS 7
Introduction
In this tutorial we learn how to install golang-gopkg-yaml-devel on CentOS 7.
What is golang-gopkg-yaml-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 is almost compatible with YAML 1.1, including support for anchors, tags, etc. There are still a few missing bits, such as document merging, base-60 floats (huh?), and multi-document unmarshalling. These features are not hard to add, and will be introduced as necessary. This package contains library source intended for building other packages which use import path with gopkg.in/v1/yaml prefix.
We can use yum or dnf to install golang-gopkg-yaml-devel 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.
Install golang-gopkg-yaml-devel 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 using yum by running the following command:
sudo yum -y install golang-gopkg-yaml-devel
Install golang-gopkg-yaml-devel 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 using dnf by running the following command:
sudo dnf -y install golang-gopkg-yaml-devel
How To Uninstall golang-gopkg-yaml-devel on CentOS 7
To uninstall only the golang-gopkg-yaml-devel package we can use the following command:
sudo dnf remove golang-gopkg-yaml-devel
References
Summary
In this tutorial we learn how to install golang-gopkg-yaml-devel on CentOS 7 using yum and dnf.