How To Install pandoc on CentOS 7

In this tutorial we learn how to install pandoc on CentOS 7. pandoc is Conversion between markup formats

Introduction

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

What is pandoc

Pandoc is a Haskell library for converting from one markup format to another, and a command-line tool that uses this library. It can read markdown and (subsets of) HTML, reStructuredText, LaTeX, DocBook, MediaWiki markup, Haddock markup, OPML, and Textile, and it can write markdown, reStructuredText, HTML, LaTeX, ConTeXt, Docbook, OPML, OpenDocument, ODT, Word docx, RTF, MediaWiki, Textile, groff man pages, plain text, Emacs Org-Mode, AsciiDoc, EPUB (v2 and v3), FictionBook2, and several kinds of HTML/javascript slide shows (S5, Slidy, Slideous, DZSlides, reveal.js). Pandoc extends standard markdown syntax with footnotes, embedded LaTeX, definition lists, tables, and other features. A compatibility mode is provided for those who need a drop-in replacement for Markdown.pl. For pdf output please also install pandoc-pdf.

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

Install pandoc on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install pandoc using yum by running the following command:

sudo yum -y install pandoc

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

sudo dnf -y install pandoc

How To Uninstall pandoc on CentOS 7

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

sudo dnf remove pandoc

References

Summary

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