Skip to content

Instantly share code, notes, and snippets.

@backroot
Last active February 22, 2023 14:32
Show Gist options
  • Save backroot/3898b897a21987a5314051b6818411f3 to your computer and use it in GitHub Desktop.
Save backroot/3898b897a21987a5314051b6818411f3 to your computer and use it in GitHub Desktop.
installing pandoc on CentOS 7
#!/bin/bash
sudo yum -y install epel-release
sudo yum -y install haskell-platform --enablerepo=epel
cabal update
cabal install pandoc --force-reinstall
@wowothk
Copy link

wowothk commented Oct 11, 2021

sorry, but in my case i can't get the latest version of pandoc when i follow this command. Could you explain how to get the latest version of pandoc?

You can just do:

sudo yum -y install epel-release
sudo yum -y install pandoc --enablerepo=epel

@waydenie
Copy link

A newer version is of interest to me as well! :-) If we're voting :-D

@ZhengQiushi
Copy link

After removing the original epel (sudo yum remove epel-release.noarch) and reinstalling it with rpm (sudo rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm), it works!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment