Install Pandoc
Published on 30 January 2024
Reading time: 3 min Pandoc, 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:
-
Go to the Pandoc download page:https://pandoc.org/installing.html/[https://pandoc.org/installing.html]
-
Download the package installer for your operating system.
-
Run the installer to install Pandoc.
Installation from a zip file
To install Pandoc from a zip file, proceed as follows:
-
Download the zip file containing the Pandoc binaries and documentation.
-
Unzip the zip file.
-
Move the binaries to a directory of your choice.
Installation using Chocolatey
To install Pandoc using Chocolatey, proceed as follows:
-
Open a command prompt.
-
Run the following command:
choco install pandoc
Installation using winget
To install Pandoc using winget, proceed as follows:
-
Open a command prompt.
-
Run 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`however, you can specify other programs for this task.
Warning
Using multiple installation methods may 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 outdated. Pandoc can be found 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 or 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 man 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 versions of Pandoc 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
Vous pouvez également installer à partir de la source, en utilisant les instructions ci-dessous sous Compilation à partir de la source. Notez que la plupart des distributions ont la plate-forme Haskell dans leurs dépôts de paquets. Par exemple, sur Debian/Ubuntu, vous pouvez l’installer avec
apt-get install haskell-platform
By default, Pandoc creates PDFs using LaTeX. We recommend installing TeX Live via your package manager. (On Debian/Ubuntu,apt-get install texlive). With the option`--pdf-engine`however, you can specify other programs for this task.