The following worklow based on the official documentation from pandoc https://pandoc.org/installing.html#quick-stack-method
Stack is not installed on ueberspace 6 by default. So we have to do install it manually.
- Download the release
Linux 64-bit, static
mannually according https://docs.haskellstack.org/en/stable/install_and_upgrade/#linux with the commandwget https://www.stackage.org/stack/linux-x86_64-static
- It is a tar archive, but it does not save it with the correct suffix. However we cann extract the archive using
tar -xzf linux-x86_64-static
- Copy the stack binary into your home binary folder
cp stack-1.6.3-linux-x86_64-static/stack ~/bin/
- Download the pandoc source
wget https://hackage.haskell.org/package/pandoc-1.17.0.3/pandoc-1.17.0.3.tar.gz
- Extract the archive
tar xvzf pandoc-1.17.0.3.tar.gz
- Compile and install it as documented on https://pandoc.org/installing.html#quick-stack-method with
stack setup && stack install
- The new pandoc is located on
~/.local/bin
so we have to add this to the path in~/.bash_profile
by altering the PATH variable toPATH=$HOME/.local/bin:$PATH:$HOME/bin