Download

1 Prerequisites

To install this distribution you will need:

  1. to be running RHEL/CentOS/SL 5 or 6, or Fedora Core 16 or 17,

  2. on an x86_64 architecture,

  3. with at least 1.2GB of disk space on /usr for a "standard" installation (but see below) and

  4. have root administration access.

Space Requirements

The above "standard" space requirements represent the space needed to accommodate one current GHC installation and one Haskell Platform plus for RHEL-based system, the space needed to accommodate a reference copy of the GNU binutils and gcc (Fedora systems can discount about 100MB for the non-installation of these items). However, the installer may need much more to 'peak' storage to carry out the unpacking (or at least estimate that it will). Tip: unless you have an enormous overhead of storage available try not to install many GHC installations in one go as the installer is liable to try and unpack them in parallel and demand a huge up-front premium.

Every further GHC installation you add will cost just under 900MB, for 7.4 compilers, just under 800MB for 7.0 compilers -- older compilers take up less space. Each platform requires another 175M in addition to the storage requirements of it's base compiler.

If you are running Fedora with a standard Haskell distribution which you want to use with the hub tools (without installing any other GHC packages) then the amount of space you will need should be less than 20MB.

2 Install the justhub-release RPM

The justhub-release RPM will register the JustHub repository with Yum, allowing all subsequent packages to be installed and managed with Yum.

The URLs for the release packages are:

ARCH    release-package-URL

el5     http://sherkin.justhub.org/el5/RPMS/x86_64/justhub-release-2.0-4.0.el5.x86_64.rpm
el6     http://sherkin.justhub.org/el6/RPMS/x86_64/justhub-release-2.0-4.0.el6.x86_64.rpm
fc16    http://sherkin.justhub.org/fc16/RPMS/x86_64/justhub-release-2.0-4.0.fc16.x86_64.rpm
fc17    http://sherkin.justhub.org/fc17/RPMS/x86_64/justhub-release-2.0-4.0.fc17.x86_64.rpm

which can be installed thus:

    sudo wget <release-package-URL>
    rpm -ivh justhub-release-2.0-4.0.<ARCH>.x86_64.rpm

substituting suitable vause of <release-package-URL> and <ARCH> from the above table.

3 Install Haskell

Now you should have Yum set up with the JustHub repository for your O/S you just have to choose the packages you want to install. EL users have two options while Fedora users get a third option.

# yum install fedora-hub (Fedora only)

Any Fedora user with a standard Haskell installation will probably want to start by installing this package. (If you don't have the standard Haskell installation then you just install haskell -- see below).

    sudo yum install fedora-hub

This will install the just the hub sandboxing infrastructure making the standard GHC installation available through the 7.0.4-fedora global hub.

N.B. You will have to put /usr/hs/bin into your shell execution PATH ahead of /usr/bin. E.g.,

    PATH=/usr/hs/bin:$PATH

# yum install haskell

If you don't plan to have any other Haskell distribution installed then you can install this package.

    sudo yum install haskell

This will install the current Haskell Platform and populate /usr/bin. You will be good to go.

# yum install haskell-min

If you don't want the tools installed in /usr/bin then it's:

    sudo yum install haskell-min

This will install the current Haskell Platform and populate /usr/hs/bin with the tools.

N.B. You will have to put /usr/hs/bin into your shell execution PATH ahead of /usr/bin. E.g.,

    PATH=/usr/hs/bin:$PATH

Boutique Installations

It is possible to install (say) just GHC-7.4.2 without the current Haskell platform. This page won't be cluttered with such explanations unless a compelling demand manifests. (More likely some wiki notes will be added.)

4 Browse The Back Catalogue (& The Forward Catalogue)

See the Catalogue for the list of GHC and Haskell Platform installations.

5 Pulling the Plug

If you need to clean out every JustHub package you have installed (except for the justhub-release package) use this:

    yum erase haskell-hub-plug