Installing Haskell to Red Hat Enterprise Linux 6.x

I don’t normally draw packages from EPEL, because some of them have conflicted with packages from other repositories that I use. But packages for Haskell on RHEL can be found there, and I haven’t found working .RPMs elswehere. On the assumption that one is going to use those EPEL packages, gmp-devel, which is available from RHN, must be installed. To do so, as root, enter

yum install gmp-devel

There are at least a couple of ways to fetch and install the EPEL packages for Haskell. I think that the easiest is to use yum. As root, creäte a file


with contents

name=RHEL 6 - epel - $releasever - $basearch

Then as root enter

yum install haskell-platform

(After that, as root I delete that .repo file

rm /etc/yum.repos.d/epel.repo

so as not to have those previously mentioned conflicts with packages from other repositories.)

Tags: , , , ,


  1. burz on 10.08.2014 at 17:58 (Reply)

    Thanks, this worked for me on Red Hat by changing the 6's to 7's.

    1. Daniel on 10.08.2014 at 18:38 (Reply)

      Thank you for reporting that. (I have migrated to Fedora, and allowed my Red Hat license to lapse.)

Leave a comment

Allowed HTML tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>