How To Install ghc-yaml on CentOS 7

In this tutorial we learn how to install ghc-yaml on CentOS 7. ghc-yaml is Support for parsing and rendering YAML documents

Introduction

In this tutorial we learn how to install ghc-yaml on CentOS 7.

What is ghc-yaml

Provides support for parsing and emitting Yaml documents. The package is broken down into two modules. “Data.Yaml” provides a high-level interface based around the JSON datatypes provided by the aeson package. “Text.Libyaml” provides a lower-level, streaming interface. For most users, “Data.Yaml” is recommended.

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

Install ghc-yaml on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install ghc-yaml using yum by running the following command:

sudo yum -y install ghc-yaml

Install ghc-yaml 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 ghc-yaml using dnf by running the following command:

sudo dnf -y install ghc-yaml

How To Uninstall ghc-yaml on CentOS 7

To uninstall only the ghc-yaml package we can use the following command:

sudo dnf remove ghc-yaml

References

Summary

In this tutorial we learn how to install ghc-yaml on CentOS 7 using yum and dnf.