Reading time: 3 min Pandoc is a universal document converter

Pandoc is an open source word processing software that can be used to convert documents between different formats. There are several ways to install Pandoc.

Installation from the download page

To install Pandoc from the download page, proceed as follows:

  1. Go to the Pandoc download page:https://pandoc.org/installing.html/[https://pandoc.org/installing.html]

  2. Download the package installer for your operating system.

  3. Run the installer to install Pandoc.

Installation from a zip file

To install Pandoc from a zip file, proceed as follows:

  1. Download the zip file containing the Pandoc binaries and the documentation.

  2. Unzip the zip file.

  3. Move the binaries to a directory of your choice.

Installation using Chocolatey

To install Pandoc using Chocolatey, proceed as follows:

  1. Open a command prompt.

  2. Run the following command:

choco install pandoc

Installation using winget

To install Pandoc using winget, follow these steps:

  1. Open a command prompt.

  2. Execute the following command:

winget install --source winget --exact --id JohnMacFarlane.Pandoc

Recommendations

By default, Pandoc creates PDFs using LaTeX. It is recommended to install LaTeX via MiKTeX. With the option`--pdf-engine`, you can however specify other programs for this task.

Warning

Using multiple installation methods can result in two separate installations of Pandoc. It is recommended to properly uninstall Pandoc before switching to an alternative installation method.

Installation on Linux via WSL

Check if the version of pandoc in your package manager is not outdated. Pandoc is located in the repositories of Debian, Ubuntu, Slackware, Arch, Fedora, NixOS, openSUSE, Gentoo, and Void.

To get the latest version, we offer a binary package for the amd64 architecture on the download page.

The executable is statically linked and has no dynamic dependencies nor dependencies on external data files. Note: due to static linking, the pandoc binary in this package cannot use Lua filters that require external Lua modules written in C.

A tarball and a deb installer are provided. To install the deb :

sudo dpkg -i $DEB

Example at the time of writing:

wget https://github.com/jgm/pandoc/releases/download/3.1.11.1/pandoc-3.1.11.1-1-amd64.deb
sudo dpkg -i pandoc-3.1.11.1-1-amd64.deb

où `$DEB`is the path to the downloaded deb. This will install the executable`pandoc`and the manual page.

If you are using an RPM-based distribution, you may be able to install the .deb from our download page using alien.

On any distribution, you can install from the tarball in`$DEST`(for example,/usr/local/ ou $HOME/.local) by doing :

tar xvzf $TGZ --strip-components 1 -C $DEST

où `$TGZ`is the path to the downloaded zipped tarball. For Pandoc versions prior to 2.0, which do not provide a tarball, try instead:

ar p $DEB data.tar.gz | tar xvz --strip-components 2 -C $DEST

You can also install from source, using the instructions below under`Compilation à partir de la source`. Note that most distributions have the Haskell platform in their package repositories. For example, on Debian/Ubuntu, you can install it with

apt-get install haskell-platform

By default, Pandoc creates PDFs using LaTeX. We recommend that you install TeX Live via your package manager. (On Debian/Ubuntu,apt-get install texlive). With the option`--pdf-engine`, you can however specify other programs for this task.

Related articles