How To Install ghc-pandoc-types on CentOS 7

In this tutorial we learn how to install ghc-pandoc-types on CentOS 7. ghc-pandoc-types is Types for representing a structured document

Introduction

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

What is ghc-pandoc-types

This package contains definitions for the Pandoc data structure, which is used by pandoc to represent structured documents. These definitions used to live in the pandoc package, but they have been split off, so that other packages can use them without drawing in all of pandoc’s dependencies, and pandoc itself can depend on packages (like citeproc-hs) that use them.

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

Install ghc-pandoc-types 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-pandoc-types using yum by running the following command:

sudo yum -y install ghc-pandoc-types

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

sudo dnf -y install ghc-pandoc-types

How To Uninstall ghc-pandoc-types on CentOS 7

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

sudo dnf remove ghc-pandoc-types

References

Summary

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