Latest official binaries
|Windows||Intel Mac OSX||GNU/Linux||OpenBSD||FreeBSD|
|Darcs 2.8.1 msi (checksum) Darcs 2.8.5 exe (checksum)||Darcs 2.8.4 (checksum)
10.8 Mountain Lion only
|Darcs 2.8||Darcs 2.5.2 (32bit) (64bit)||Darcs 2.5.2 (32bit) (64bit)|
The current stable release is darcs 2.10.0, released in April 2015.
Compiling from source
You can grab the source of the latest reviewed branch from
You can also clone darcs’ repository using darcs itself:
darcs clone --lazy http://darcs.net/ # more up-to-date, less tested darcs clone --lazy http://darcs.net/reviewed # less up-to-date, more tested
If for whatever reason you need an older release of darcs, see Releases.
Darcs is written in Haskell, and to build it we recommend the installation of the Haskell Platform. Building can then be done by typing
cabal update followed by
cabal install in the source directory. Note for Mac users: by default, cabal will attempt to install packages with profiling enabled, which may cause installation failures; disabling profiling may help - see issue2268 for details.
Official Windows binaries:
- darcs 2.5.2 (checksum, built with GHC 6.12.3, curl version 7.21.4)
- darcs 2.5.1 (checksum, built with GHC 6.12.3, curl version 7.21.4)
- darcs 2.5 (checksum, built with GHC 6.12.3, curl version 7.21.2)
- darcs 2.4.4 (checksum, built with GHC 6.10.4, curl version 7.19.6)
For local or HTTP access, just download the zip file above and unpack it. If you need SSH support, see WindowsConfiguration.
Mac OS X
MacOS X now has four binary architectures; ppc, ppc64, x86, x86_64. For the purposes of haskell/darcs building, I think this mostly amounts the two architectures of the ppc/x86 split. The Rosetta emulation layer that ships with 10.4 x86 allows x86 users to run many (but not all) ppc binaries, however ppc users cannot run x86 binaries.
brew install http://darcs.covariant.me/darcs.rb
Intel OS X
Official MacOS X binaries:
- darcs 2.8.4 (+1 patch) (checksum) ONLY 10.8 Mountain Lion Intel x86_64
- darcs 2.8.4 (+1 patch) (checksum) 10.7 Lion
- darcs 2.5 (checksum) 10.6 Snow Leopard Intel
- darcs 2.4.4 (checksum) 10.6 Snow Leopard Intel
Try compiling from source
Binary not recent enough? Compiling from source can actually be quite easy. Just download the Haskell Platform and run
cabal install darcs
For former versions of OS X you can compile like this:
MACOSX_DEPLOYMENT_TARGET=10.7 cabal install darcs
or like this (which is not tested yet):
cabal install --gcc-options="-mmacosx-version-min=10.7" darcs
Binary for Linux
http://teratorn.org/code/darcs-2.8.0-linux-ghc7.0.4-CURL-packed.by.ermine.tar.bz2(32-bit; runs on x86_64 without dependencies; cURL-enabled; See Build details. - Packed with Ermine for extreme portability)
http://teratorn.org/code/darcs-2.5.2-linux-ghc7.0.4-CURL-packed.by.ermine.tar.bz2(32-bit; runs on x86_64 without dependencies; cURL-enabled; Packed with Ermine for extreme portability)
http://progg.free.fr/darcs/darcs-2.4.4-ghc6.12.1-http-static.bin.bz2(32-bit; statically linked)
http://urchin.earth.li/~ganesh/darcs/darcs-2.3.1-ghc6.10.4-http-static.bin(32-bit; statically linked)
http://repos.mornfall.net/darcs/darcs-2.2.0-ghc6.10-libwww-static.bin(32-bit; statically linked)
v2.2.0 above may be useful to run with older kernels.
Packages for Debian and Ubuntu
Download a .deb from packages.debian.org
Or grab a portable DEB:
http://teratorn.org/code/darcs_2.5.2_i386.deb(32-bit DEB; cURL-enabled; Packed with Ermine for extreme portability)
http://teratorn.org/code/darcs_2.5.2_amd64.deb(64-bit DEB (same binary as 32-bit DEB); cURL-enabled; Packed with Ermine for extreme portability)
Distributions that provide darcs
- Arch Linux: in the AUR
- Gentoo: you can see which “stable” and “unstable” versions are available for your architecture at
http://packages.gentoo.org/package/dev-util/darcs. You can try the “unstable” version (for non-i386 platforms replace ~x86 with correct keyword, for amd-64 use ~amd64):
mkdir /etc/portage(if you have not already done so)
echo "dev-util/darcs ~x86" >> /etc/portage/package.keywords
- Mandriva: ensure your urpmi is setup with contrib media. For all issue related to this package, please contact the official maintainer: firstname.lastname@example.org To have benefits of bash completion, install the
- Ubuntu: you will have to enable the universe packages source
http://teratorn.org/code/darcs-2.5.2-freebsd-i386-ghc7.0.1-CURL-static.bin.bz2(32-bit; statically linked; cURL-enabled)
http://teratorn.org/code/darcs-2.5.2-freebsd-amd64-ghc7.0.1-CURL-static.bin.bz2(64-bit; statically linked; cURL-enabled)
These binaries are known to work on FreeBSD 8.1, 8.0 and 7.3 (and probably work on other versions too)
To see wether Darcs builds on your FreeBSD version, check the FreeBSD ports collection:
To build from source:
cd /usr/ports/devel/darcs && make install or, to install the server as well:
cd /usr/ports/devel/darcs && make -DWITH_SERVER install If you install the server, the CGI executable is installed as /usr/local/libexec/darcs/cgi-bin/darcs, and its configuration file is /usr/local/etc/darcs/darcs/cgi.conf.
Since darcs depends on Haskell, be prepared for the above to also download and install any Haskell related ports that you don’t already have, such as ghc.
To fetch and install a binary package from an official FreeBSD server:
pkg_add -r darcs
The statically-linked Linux binary above also appears to work if you’ve got COMPAT_LINUX in your kernel.
If you want to compile darcs yourself on FreeBSD, be sure to use
gmake instead of
darcs is available in ports. To install the binary ports package:
export PKG_PATH=ftp://ftp.openbsd.org/pub/OpenBSD/`uname -r`/packages/`machine -a`/ pkg_add -v darcs
The following table lists the darcs version available in each OpenBSD release.
|OpenBSD release||darcs version|
Alternatively you may install the following binaries which are known to work on OpenBSD 4.9, 4.8 and 4.7 (and probably work on other versions too)
http://teratorn.org/code/darcs-2.5.2-openbsd-i386-ghc6.12.3-CURL-static.bin.bz2(32-bit; statically linked; cURL-enabled)
http://teratorn.org/code/darcs-2.5.2-openbsd-amd64-ghc6.12.3-CURL-static.bin.bz2(64-bit; statically linked; cURL-enabled)
No native binaries are available yet. On x86, the statically-linked Linux binary above works if you’ve got COMPAT_LINUX in your kernel.
It’s possible to use pkgsrc to install binary or build Darcs from sources. Darcs is in directory pkgsrc/devel/darcs.