Skip to content
This repository has been archived by the owner on Mar 12, 2019. It is now read-only.

Latest commit

 

History

History
171 lines (117 loc) · 6.42 KB

distribution_packages.mkd

File metadata and controls

171 lines (117 loc) · 6.42 KB
title
Distribution packages

Distribution Packages

The OS-specific packages (eg. RPMs on Linux) are generally a better bet than the vanilla .tar.bz2 binary bundles, because they will check for dependencies and allow the package to be uninstalled at a later date.

While they may lag behind the latest GHC release, we recommend using them anyway for the above reasons, unless you have a particular need for new features or bug fixes.

Available Packages

Packages are available for the following systems:


[Arch Linux]{#archlinux} (i386, amd64)

GHC packages are in the Arch Linux "extra" repository.

The packages are maintained by Vesa Kaihlavirta and Don Stewart. For more information on Arch Haskell packaging, see the Haskell package guidelines.


[Debian]{#debian} (alpha, amd64, arm, hppa, i386, ia64, mips, mipsel, powerpc, s390, sparc)

All Debian platforms have ghc6 packages in the main Debian archive. Use apt-get update && apt-get install ghc6 ghc6-prof ghc6-doc to install them as normal; you can also get the library sources in the ghc6-libsrc package.

The extralibs, as well as various other libraries, are available as libghc6-library-dev. You may also want libghc6-library-prof and libghc6-library-doc for the profiling libraries and documentation respectively, but sometimes this will be included in the main package.

The packages are maintained by Kari Pahula. Debian Haskell packaging is coordinated on the Debian Haskell mailing list.


[Fedora]{#fedora} (i386, ppc, x86_64)

Fedora users can install with yum install ghc. The packages are maintained by the Fedora Haskell SIG.

Jens Petersen also maintains a set of COPR packages, which are typically more up-to-date than the official repository paackages.


[FreeBSD]{#freebsd} (x86)

GHC is in the FreeBSD ports tree as lang/ghc.

To install a binary package, try pkg_add -r ghc provided the package exists on whatever mirror site your system is set up to use.

To install from source instead, make sure your copy of /usr/ports is up to date, and say cd /usr/ports/lang/ghc && make install.

The packages are maintained by [email protected]. For more information on FreeBSD Haskell packaging, see the Haskell FreeBSD Effort.


[Gentoo]{#gentoo} (alpha, amd64, hppa, ia64, ppc, ppc64, sparc, x86, x86 fbsd)

GHC is available as an ebuild. Run emerge dev-lang/ghc to get the latest version Gentoo considers stable; later versions may be available but masked.

The packages are maintained by the Gentoo Haskell team.


[macOS]{#macosx} (amd64)

For macOS we provide binary tarballs, available on the download page for each release. We recommend using these installers rather than using the alternatives below.

GHC is also available via the MacPorts and Homebrew systems.


[NetBSD]{#netbsd} (x86)

GHC 7.6 is in the NetBSD package tree as lang/ghc7. No newer releases are available.

To install a binary package, try pkg_add -r ghc provided the package exists on whatever mirror site your system is set up to use. To install from source instead, make sure your copy of /usr/pkgsrc is up to date, and say cd /usr/pkgsrc/lang/ghc && make install.


[Nix/NixOS]{#nixos} (i386, amd64)

GHC is included in nixpkgs as the ghc derivation.


[OpenBSD]{#openbsd} (i386)

GHC is included in the OpenBSD ports tree as lang/ghc. Make sure your ports tree is up to date, and say cd /usr/ports/lang/ghc && make install.

The packages are maintained by Don Stewart.


[openSUSE]{#opensuse} (i386, amd64)

RPMs are available from openSUSE.


[Ubuntu]{#ubuntu} (amd64, i386, powerpc)

Ubuntu has GHV packages in its universe repository. Enable the universe repository in Synaptics, and then install the ghc, ghc-prof and ghc-doc packages.

The extralibs, as well as various other libraries, are available as libghc-library-dev. You may also want libghc-library-prof and libghc-library-doc for the profiling libraries and documentation respectively. You can also get the library sources in the ghc-libsrc package.

Alternatively, you can install from the command line: use apt-get update && apt-get install ghc ghc-prof ghc-doc to install GHC.

Finally, a variety of older and newer releases are available in hvr's PPA. This can be enabled with,

Ubuntu generally gets its Haskell packages from Debian. See also the Ubuntu Haskell page.