How To Install Pandoc In Debian, Ubuntu, Arch, Kali, Fedora, Raspbian And MacOS?

How To Install Pandoc In Debian, Ubuntu, Arch, Kali, Fedora, Raspbian And MacOS?

pandoc

Convert documents between various formats.

Maintainer: Debian Haskell Group



Section: text

Install pandoc

  • Debian apt-get install pandoc Click to copy
  • Ubuntu apt-get install pandoc Click to copy
  • Arch Linux pacman -S pandoc Click to copy
  • Kali Linux apt-get install pandoc Click to copy
  • Fedora dnf install pandoc Click to copy
  • Raspbian apt-get install pandoc Click to copy
  • macOS brew install pandoc Click to copy

Convert documents between various formats.

How to use pandoc?

Below are few example commands for pandoc that you can use in the terminal.

Convert file to pdf (the output format is determined by file extension):
pandoc input.md -o output.pdfClick to copy
Force conversion to use a specific format:
pandoc input.docx --to markdown_github -o output.mdClick to copy
Convert to a standalone file with the appropriate headers/footers (for LaTeX, HTML, etc.):
pandoc input.md -s -o output.texClick to copy
List all supported input formats:
pandoc --list-input-formatsClick to copy
List all supported output formats:
pandoc --list-output-formatsClick to copy
Install the latest version of pandoc in Debian, Ubuntu, Arch, Kali, Fedora, Raspbian and macOS from terminal. To install the pandoc just copy the above command for your OS and run into terminal. After you run the command it will grab the latest version of pandoc from the respository and install it in your computer/server.