How To Install pandoc on Kali Linux

In this tutorial we learn how to install pandoc on Kali Linux. pandoc is general markup converter

Introduction

In this tutorial we learn how to install pandoc on Kali Linux.

What is pandoc

pandoc is:

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 several dialects of Markdown and (subsets of) HTML, reStructuredText, LaTeX, DocBook, JATS, MediaWiki markup, DokuWiki markup, TWiki markup, TikiWiki markup, Jira markup, Creole 1.0, Haddock markup, OPML, Emacs Org-mode, Emacs Muse, txt2tags, ipynb (Jupyter notebooks), Vimwiki, Word Docx, ODT, EPUB, FictionBook2, roff man, Textile, and CSV, and it can write Markdown, reStructuredText, XHTML, HTML 5, LaTeX (including rendering as plain PDF or beamer slide shows), ConTeXt, DocBook, JATS, OPML, TEI, OpenDocument, ODT, Word docx, PowerPoint pptx, RTF, MediaWiki, DokuWiki, XWiki, ZimWiki, Textile, Jira, roff man, roff ms, GNU Texinfo, plain text, Emacs Org-Mode, AsciiDoc, Haddock markup, EPUB (v2 and v3), ipynb, FictionBook2, InDesign ICML, Muse, LaTeX beamer slides, PowerPoint, and several kinds of HTML/javaScript slide shows (S5, Slidy, Slideous, DZSlides, reveal.js).

In contrast to most existing tools for converting Markdown to HTML, pandoc has a modular design: it consists of a set of readers, which parse text in a given format and produce a native representation of the document, and a set of writers, which convert this native representation into a target format. Thus, adding an input or output format requires only adding a reader or writer.

This package contains the pandoc tool.

Some uses of Pandoc require additional packages:

  • SVG content in PDF output requires librsvg2-bin.
  • YAML metadata in TeX-related output requires texlive-latex-extra.
  • *.hs filters not set executable requires ghc.
  • *.js filters not set executable requires nodejs.
  • *.php filters not set executable requires php.
  • *.pl filters not set executable requires perl.
  • *.py filters not set executable requires python.
  • *.rb filters not set executable requires ruby.
  • *.r filters not set executable requires r-base-core.
  • LaTeX output, and PDF output via PDFLaTeX, require texlive-latex-recommended.
  • XeLaTeX output, and PDF output via XeLaTeX, require texlive-xetex.
  • LuaTeX output, and PDF output via LuaTeX, require texlive-luatex.
  • ConTeXt output, and PDF output via ConTeXt, require context.
  • PDF output via wkhtmltopdf requires wkhtmltopdf.
  • Roff man and roff ms output, and PDF output via roff ms, require groff.
  • MathJax-rendered equations require libjs-mathjax.
  • KaTeX-rendered equations require node-katex.
  • option –csl may use styles in citation-style-language-styles.

There are three methods to install pandoc on Kali Linux. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install pandoc Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install pandoc using apt-get by running the following command:

sudo apt-get -y install pandoc

Install pandoc Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install pandoc

Install pandoc Using aptitude

If you want to follow this method, you might need to install aptitude on Kali Linux first since aptitude is usually not installed by default on Kali Linux. Update apt database with aptitude using the following command.

sudo aptitude update

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

sudo aptitude -y install pandoc

How To Uninstall pandoc on Kali Linux

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

sudo apt-get remove pandoc

Uninstall pandoc And Its Dependencies

To uninstall pandoc and its dependencies that are no longer needed by Kali Linux, we can use the command below:

sudo apt-get -y autoremove pandoc

Remove pandoc Configurations and Data

To remove pandoc configuration and data from Kali Linux we can use the following command:

sudo apt-get -y purge pandoc

Remove pandoc configuration, data, and all of its dependencies

We can use the following command to remove pandoc configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge pandoc

Dependencies

pandoc have the following dependencies:

References

Summary

In this tutorial we learn how to install pandoc package on Kali Linux using different package management tools: apt, apt-get and aptitude.