Install Haskell on CentOS

When yum install haskell-platform fails

JT Paasch
JT Paasch
Nov 28, 2013 · 1 min read

You use spin to get that shiny new VM up and running quickly. It’s CentOS 6.4.

You want Haskell on it. You google it, and see what appears to be an official declaration that you should do the obvious:

sudo yum install -y haskell-platform

Couldn’t be easier, right?

But you get an error:

No package haskell-platform available.

Apparently, you can’t just yum install the haskell-platform.

I’ve run up against this wall a hundred times in the past, but haven’t ever had the time or will to try and solve it. Instead, I’ve just spun up an ubuntu VM, where apt-get install haskell-platform works.

But it hit me today. Haskell might be available for CentOS through the EPEL repo. Duh. Why didn’t I think of this before?

Install the EPEL (and Remi) repo by following these instructions:

Now update and see if you can find any haskell or ghc stuff:

sudo yum update
sudo yum search haskell
sudo yum search ghc

Tons of stuff shows up now. You can install haskell packages until you die.

Installing then works as expected:

sudo yum install -y haskell-platform

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch

Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore

Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store