Differences between revisions 23 and 120 (spanning 97 versions)
Revision 23 as of 2009-07-02 11:17:24
Size: 7141
Comment: Fold simplified version of BinaryPackes into Download.
Revision 120 as of 2010-10-01 18:31:18
Size: 7782
Editor: JimHague
Comment: AIX now 1.6.4
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
'' (Other languages: [[FrenchDownload|Français]] [[ChineseDownload|中文]] )''
Line 4: Line 6:

 * Source code of [[WhatsNew|released versions]] of Mercurial can be downloaded as usual .tar.gz files at [[http://www.selenic.com/mercurial/release/?M=D|http://www.selenic.com/mercurial/release/]].
 * The [[http://selenic.com/repo/hg-stable|hg-stable]] repository leads to stable releases - download [[http://www.selenic.com/mercurial-stable-snapshot.tar.gz|hourly snapshot]].
 * The [[http://selenic.com/repo/hg|hg]] repository is the main development repository - download [[http://www.selenic.com/mercurial-snapshot.tar.gz|hourly snapshot]].
 * Check DeveloperRepos for other relevant developer repositories where you can get clone the hg source.
 * Source code of [[WhatsNew|released versions]] of Mercurial can be downloaded as usual .tar.gz files at [[http://mercurial.selenic.com/release/?M=D|http://mercurial.selenic.com/release/]].
 * The [[http://selenic.com/repo/hg-stable|hg-stable]] repository leads to stable releases - download [[http://selenic.com/repo/hg-stable/archive/tip.tar.gz|snapshot]].
 * The [[http://selenic.com/repo/hg|hg]] repository is the main development repository - download [[http://selenic.com/repo/hg/archive/tip.tar.gz|snapshot]].
 * Check DeveloperRepos for other relevant developer repositories where you can clone the hg source.
Line 13: Line 14:
== Windows ==
/!\ '''Like TortoiseSVN, [[http://www.selenic.com/pipermail/mercurial/2010-January/029680.html|we recommend]] to turn off the indexing service on the working copies and repositories, and exclude them from virus scans.''' The following installers can be used from Win2K on:
Line 14: Line 17:
If you have Python and setuptools installed, you can also use [[EasyInstall|easy_install]].  * [[http://tortoisehg.bitbucket.org/download/index.html|TortoiseHg with Windows Explorer "shell" integration]] all-in-one installer with !TortoiseHg 1.1.3 and Mercurial 1.6.3 (alternate download: [[http://bitbucket.org/tortoisehg/stable/downloads|Bitbucket]] / [[http://tortoisehg.codeplex.com/releases|CodePlex]])
 * [[http://bitbucket.org/tortoisehg/thg-winbuild/downloads/mercurial-1.6.3.msi|Mercurial-1.6.3 (msi)]], needs admin rights to install.
 * [[http://mercurial.selenic.com/release/windows/Mercurial-1.6.3.exe|Mercurial-1.6.3 (exe)]], does not need admin rights to install (InnoSetup based).
 * [[http://cygwin.com/|cygwin]] can install mercurial.
Line 16: Line 22:
== Windows ==
 * [[TortoiseHg]] all-in-one installer with MS-Explorer integration. Version 0.8 includes Mercurial 1.3
 * [[http://mercurial.berkwood.com|Windows]] installer - latest release, previous builds, snapshots
 * [[http://bitbucket.org/tortoisehg/stable/downloads/|Nightly builds]] - sneak preview of next version of TortoiseHg and Mercurial. Warning: Do not use in production environment.
 * [[http://cygwin.com/|cygwin]] can install mercurial.
Most of the above installers are from [[http://bitbucket.org/tortoisehg/thg-winbuild/downloads/|thg-winbuild]], which has nightly builds of Mercurial and !TortoiseHg - and installers for installing Mercurial as Python packages.
Line 24: Line 26:
 * [[http://pdb.finkproject.org/pdb/package.php/mercurial-py25|fink package]]
 * [[http://www.macports.org/|macports]] can install mercurial by 'sudo port install mercurial'.
 * [[http://pdb.finkproject.org/pdb/package.php/mercurial-py25|fink]] - 1.2.1
 * [[http://www.macports.org/|macports]]: install with 'sudo port install mercurial' - 1.4.2
Line 29: Line 31:
  * Debian squeeze (testing) includes [[http://packages.debian.org/squeeze/mercurial|1.1.2]] in the distribution.
  * Debian lenny (stable) includes [[http://packages.debian.org/lenny/mercurial|1.0.1]] in the distribution.
  * [[http://packages.debian.org/sid/mercurial|Debian sid (unstable)]] - 1.5.2
  * [[http://packages.debian.org/squeeze/mercurial|Debian squeeze (testing)]] - 1.5.1
  * [[http://packages.debian.org/lenny/mercurial|Debian lenny (stable)]] - 1.0.1
Line 32: Line 35:
  * Included in the distribution:
   * Ubuntu Hardy includes [[http://packages.ubuntu.com/hardy/mercurial|0.9.5]], with [[http://packages.ubuntu.com/hardy-backports/mercurial|1.0.1]] available if you [[https://help.ubuntu.com/community/UbuntuBackports|enable backports]]
   * Ubuntu Intrepid includes [[http://packages.ubuntu.com/intrepid/mercurial|1.0.1]].
   * Ubuntu Jaunty includes [[http://packages.ubuntu.com/jaunty/mercurial|1.1.2]].
  * Launchpad PPAs, carrying packages for Hardy, Intrepid and Jaunty:
   * [[https://launchpad.net/~mercurial-ppa/+archive/releases|mercurial-ppa/releases PPA]]: The latest Mercurial release.
   * [[https://launchpad.net/~mercurial-ppa/+archive/stable-snapshots|mercurial-ppa/stable-snapshots PPA]]: Automatic daily snapshot of `hg-stable` DeveloperRepos. <<BR>>''('''Please note''' that these packages are '''not''' releases. If you use these, you are testing unreleased code.)''
   * [[https://launchpad.net/~mercurial-ppa/+archive/snapshots|mercurial-ppa/snapshots PPA]]: Automatic daily snapshot of `hg` DeveloperRepos. <<BR>>''('''Please note''' that these packages are '''not''' releases. If you use these, you are testing unreleased code.)''
  * [[http://packages.ubuntu.com/hardy/mercurial|Ubuntu Hardy]] - 0.9.5 ([[http://packages.ubuntu.com/hardy-backports/mercurial|1.0.1]] available if you [[https://help.ubuntu.com/community/UbuntuBackports|enable backports]])
  * [[http://packages.ubuntu.com/intrepid/mercurial|Ubuntu Intrepid]] - 1.0.1
  * [[http://packages.ubuntu.com/jaunty/mercurial|Ubuntu Jaunty]] - 1.1.2
  * [[http://packages.ubuntu.com/karmic/mercurial|Ubuntu Karmic]] - 1.3.1
  * [[http://packages.ubuntu.com/lucid/mercurial|Ubuntu Lucid]] - 1.4.3
  * '''Launchpad PPAs''' (carrying packages for Hardy, Intrepid, Jaunty and Karmic)
   * [[https://launchpad.net/~mercurial-ppa/+archive/releases|Releases]] - 1.6
   * [[https://launchpad.net/~mercurial-ppa/+archive/stable-snapshots|Stable snapshots]] - daily snapshot of stable DeveloperRepos (warning: untested code)
   * [[https://launchpad.net/~mercurial-ppa/+archive/snapshots|Snapshots]] - daily snapshot of unstable DeveloperRepos (warning: untested code)
Line 44: Line 48:
 * Mandriva includes Mercurial - install with {{{urpmi mercurial}}} or manually [[http://rpmfind.net/linux/rpm2html/search.php?query=mercurial&submit=Search+...&system=mandriva&arch=|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 [[http://koji.fedoraproject.org/koji/packageinfo?packageID=2518|here]].
 * [[http://repos.opensuse.org/devel:/tools:/scm|OpenSUSE]]
 * [[http://www.arklinux.org/|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) [[http://arklinux.osuosl.org/dockyard-devel|here]].
 * [[http://www.openpkg.org/product/packages/?package=mercurial|OpenPKG]] - lists 0.9.3, though 0.9.4 is downloadable
 * [[http://code.google.com/p/i18n-zh/wiki/Mercurial|CentOS 4.5]] - latest released version 0.9.4.
 * CentOS release 5 (final) - {{{yum install mercurial}}} from rpmforge repository, latest stable (1.0)
 * [[https://rpmrepo.org/RPMforge/Using|RPMforge]]: packages for RHEL 5 and CentOS 5; install using {{{yum install mercurial}}} - 1.5
 * [[http://rpmfind.net/linux/rpm2html/search.php?query=mercurial&submit=Search+...&system=mandriva&arch=|Mandriva]]: install with {{{urpmi mercurial}}} - 1.2.1
 * [[http://koji.fedoraproject.org/koji/packageinfo?packageID=2518|Fedora]] - latest version is available within few days after release, install with {{{yum install '*mercurial}}}*'
 * [[http://fedoraproject.org/wiki/EPEL|Fedora Projects EPEL]] for RHEL and CentOS 5: 1.3.1, install with {{{yum install '*mercurial}}}*'
 * [[http://download.opensuse.org/repositories/devel:/tools:/scm/|openSUSE]] - latest version is available shortly after release in the `devel:tools:scm` repository
 * [[http://arklinux.osuosl.org/dockyard-devel/SRPMS/|Ark Linux]] - 1.0.2
 * [[http://www.openpkg.org/product/packages/?package=mercurial|OpenPKG]] - 1.2.1

An rpm package can be built from a Mercurial source repository with ''contrib/buildrpm''. It has currently mostly been tested on Fedora.
Line 53: Line 59:
 * [[http://archlinux.org/packages/search/?repo=all&category=all&q=mercurial&lastupdate=&limit=50|Arch Linux]]
 * [[http://packages.gentoo.org/package/dev-util/mercurial|Gentoo ebuild]]
 * [[http://www.t2-project.org/packages/mercurial.html|T2 SDE]] package of official releases
 * [[ftp://f
tp.osuosl.org/pub/slackware/slackware-12.0/slackware/d/mercurial-0.9.4-i486-1.tgz|Slackware 12.0]] - 0.9.4 official package
 * [[http://archlinux.org/packages/search/?repo=all&category=all&q=mercurial&lastupdate=&limit=50|Arch Linux]] - 1.2.1
 * [[http://packages.gentoo.org/package/dev-util/mercurial|Gentoo ebuild]]: install with {{{emerge mercurial}}} - 1.3.1 (1.4.1 in unstable)
 * [[http://www.t2-project.org/packages/mercurial.html|T2 SDE]] - 1.3
 * [[http://
ftp.osuosl.org/pub/slackware/slackware-12.2/slackware/d/|Slackware 12.2]] - 1.0.2
Line 60: Line 66:
 * [[http://www.opensolaris.org/os/community/tools/scmdownloads/|OpenSolaris package]]
 * [[http://www.blastwave.org/packages.php/mercurial|blastwave, solaris 8 to 10 package]]
 * [[http://sunfreeware.com|sunfreeware.com]] - SPARC/Solaris 7-10 packages, x86/Solaris 8-10 packages - 1.1.2
 * [[http://opencsw.org|OpenCSW]]: [[http://opencsw.org/packages/mercurial|mercurial-1.3.1]], [[http://mirror.opencsw.org/testing.html|testing contains mercurial-1.4.1]], for Solaris 8-10, SPARC/x86.
 * [[http://www.blastwave.org/pkg/search.ftd?qs=mercurial|blastwave]] - 1.3.1
 * [[http://sunfreeware.com|sunfreeware.com]] - SPARC/Solaris 2.6-10 packages, x86/Solaris 8-10 packages - 1.5

== AIX ==
 * [[http://www.lunch.org.uk/wiki/aix_packages|Mercurial and supporting RPMs, for AIX 5.2 and later]] - 1.6.4
Line 65: Line 74:
 * [[http://www.freebsd.org/cgi/url.cgi?ports/devel/mercurial/pkg-descr|FreeBSD Mercurial port]] ([[http://www.freebsd.org/cgi/cvsweb.cgi/ports/devel/mercurial/|port-webdir]]). i386 package: [[ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-stable/devel/mercurial-1.1.2.tbz|mercurial-1.1.2.tbz]].
   * Requires [[http://www.freebsd.org/cgi/cvsweb.cgi/ports/lang/python25/|python25]] (i386 package: [[ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-stable/lang/
python25-2.5.2_1.tbz|python25-2.5.2_1.tbz]]).
  
Use [[http://www.freebsd.org/cgi/man.cgi?query=pkg_add&apropos=0&sektion=0&manpath=FreeBSD+6.3-RELEASE&format=html|pkg_add]] for installing.
 * [[ftp://ftp.netbsd.org/pub/pkgsrc/current/pkgsrc/devel/mercurial/README.html|NetBSD]] packages compiled from [[http://pkgsrc.se/devel/mercurial|pkgsrc]]
 * [[http://freebsd.org/cgi/url.cgi?ports/devel/mercurial/pkg-descr|FreeBSD Mercurial port]] ([[http://freebsd.org/cgi/cvsweb.cgi/ports/devel/mercurial/|port-webdir]]). [[ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-stable/devel/mercurial-1.2.1.tbz|i386 package]] - 1.2.1
  * Requires [[http://freebsd.org/cgi/cvsweb.cgi/ports/lang/python25/|python25]] (i386
package: [[ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-stable/lang/python25-2.5.2_1.tbz|python25-2.5.2_1.tbz]]). Use [[http://freebsd.org/cgi/man.cgi?query=pkg_add&apropos=0&sektion=0&manpath=FreeBSD+6.3-RELEASE&format=html|pkg_add]] for installing.
 * [[ftp://ftp.netbsd.org/pub/pkgsrc/current/pkgsrc/devel/mercurial/README.html|NetBSD]] packages compiled from [[http://pkgsrc.se/devel/mercurial|pkgsrc]] - 1.2.1
Line 70: Line 78:
= Using easy_install =
Mercurial can also be installed from [[http://pypi.python.org/pypi/Mercurial/|pypi]] with {{{easy_install}}}. It will however mostly just download and make a partial installation from source as described above. The installation will not be complete, and there have been reports that it doesn't work on OS X.
Line 71: Line 81:
== AIX ==
 * AIX RPM packages are available via [[http://www.lunch.org.uk/wiki/aix_packages]]. Binary packages are built on AIX 5.2.
You will need Python and the C compiler used to build it and {{{easy_install}}}. {{{easy_install}}} might be available in a {{{python-dev}}} or {{{python-setuptools-devel}}} package for your platform or you can grab it from http://peak.telecommunity.com/DevCenter/EasyInstall.
Line 74: Line 83:
== Using easy_install == With the right prerequisites you can install the latest version of Mercurial using:
Line 76: Line 85:
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}}}.
{{{
easy_install -U mercurial
}}}

(Other languages: Français 中文 )

Source packages

After getting the source, continue to UnixInstall or WindowsInstall for help with installing.

Binary packages

1. Windows

/!\ Like TortoiseSVN, we recommend to turn off the indexing service on the working copies and repositories, and exclude them from virus scans. The following installers can be used from Win2K on:

Most of the above installers are from thg-winbuild, which has nightly builds of Mercurial and TortoiseHg - and installers for installing Mercurial as Python packages.

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)

  • fink - 1.2.1

  • macports: install with 'sudo port install mercurial' - 1.4.2

3. Linux (.deb)

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)

  • RPMforge: packages for RHEL 5 and CentOS 5; install using yum install mercurial - 1.5

  • Mandriva: install with urpmi mercurial - 1.2.1

  • Fedora - latest version is available within few days after release, install with yum install '*mercurial*'

  • Fedora Projects EPEL for RHEL and CentOS 5: 1.3.1, install with yum install '*mercurial*'

  • openSUSE - latest version is available shortly after release in the devel:tools:scm repository

  • Ark Linux - 1.0.2

  • OpenPKG - 1.2.1

An rpm package can be built from a Mercurial source repository with contrib/buildrpm. It has currently mostly been tested on Fedora.

5. Linux (others)

6. Solaris

7. AIX

8. BSD

Using easy_install

Mercurial can also be installed from pypi with easy_install. It will however mostly just download and make a partial installation from source as described above. The installation will not be complete, and there have been reports that it doesn't work on OS X.

You will need Python and the C compiler used to build it and easy_install. easy_install might be available in a python-dev or python-setuptools-devel package for your platform or you can grab it from http://peak.telecommunity.com/DevCenter/EasyInstall.

With the right prerequisites you can install the latest version of Mercurial using:

easy_install -U mercurial

Download (last edited 2021-10-01 20:25:20 by CarlReinke)