Contents
Source packages
Source code of released versions of Mercurial can be downloaded as usual .tar.gz files at http://www.selenic.com/mercurial/release/.
The hg-stable repository leads to stable releases - download hourly snapshot.
The hg repository is the main development repository - download hourly snapshot.
Check DeveloperRepos for other relevant developer repositories where you can get clone the hg source.
After getting the source, continue to UnixInstall or WindowsInstall for help with installing.
Binary packages
If you have Python and setuptools installed, you can also use easy_install.
1. Windows
TortoiseHg all-in-one installer with MS-Explorer integration. Version 0.8 includes Mercurial 1.3
Windows installer - latest release, previous builds, snapshots
Nightly builds - sneak preview of next version of TortoiseHg and Mercurial. Warning: Do not use in production environment.
cygwin can install mercurial.
2. Mac OS X
Mac OS X packages (you may have to add export LC_ALL=en_US.UTF-8 and export LANG=en_US.UTF-8 to your ~/.profile)
macports can install mercurial by 'sudo port install mercurial'.
3. Linux (.deb)
Debian
Ubuntu
- Included in the distribution:
Ubuntu Hardy includes 0.9.5, with 1.0.1 available if you enable backports
Ubuntu Intrepid includes 1.0.1.
Ubuntu Jaunty includes 1.1.2.
- Launchpad PPAs, carrying packages for Hardy, Intrepid and Jaunty:
mercurial-ppa/releases PPA: The latest Mercurial release.
mercurial-ppa/stable-snapshots PPA: Automatic daily snapshot of hg-stable DeveloperRepos.
(Please note that these packages are not releases. If you use these, you are testing unreleased code.)mercurial-ppa/snapshots PPA: Automatic daily snapshot of hg DeveloperRepos.
(Please note that these packages are not releases. If you use these, you are testing unreleased code.)
- Included in the distribution:
Mercurial (from 1.0 onwards) is packaged for Debian-related distributions as two packages, mercurial and mercurial-common - you only need to care about this if you are downloading .deb files for manual installation - otherwise, APT dependency handling will take care of this for you when you install mercurial.
4. Linux (.rpm)
Mandriva includes Mercurial - install with urpmi mercurial or manually search rpm
Fedora: All supported versions includes Mercurial - install with yum install mercurial. To get full functionality also run yum install mercurial-hgk emacs-mercurial emacs-mercurial-el bash-completion meld kdiff3. Beta releases can be tracked here.
Ark Linux always contains a current mercurial package. Ark Linux users should simply apt-get update; apt-get install mercurial. Users of other distributions can find the packages (which should work on pretty much any RPM based distribution that has Python 2.4) here.
OpenPKG - lists 0.9.3, though 0.9.4 is downloadable
CentOS 4.5 - latest released version 0.9.4.
CentOS release 5 (final) - yum install mercurial from rpmforge repository, latest stable (1.0)
5. Linux (others)
T2 SDE package of official releases
Slackware 12.0 - 0.9.4 official package
Optware cross compilation ipk - latest for Python 2.4 and 2.5
6. Solaris
sunfreeware.com - SPARC/Solaris 7-10 packages, x86/Solaris 8-10 packages - 1.1.2
7. BSD
FreeBSD Mercurial port (port-webdir). i386 package: mercurial-1.1.2.tbz.
Requires python25 (i386 package: python25-2.5.2_1.tbz). Use pkg_add for installing.
8. AIX
AIX RPM packages are available via http://www.lunch.org.uk/wiki/aix_packages. Binary packages are built on AIX 5.2.
9. Using easy_install
If you already have Python installed, you can install the latest version of Mercurial using easy_install:
easy_install -U mercurial
This is also the easiest way of installing a Mercurial newer than the one provided by your distribution.
If you have Python, but not easy_install, grab it from http://peak.telecommunity.com/DevCenter/EasyInstall.
Note: you may need the python-dev package to run easy_install.