Download and install from sources
This page describes how to download and install Mercurial from sources.
For pre-built packages of Mercurial, see BinaryPackages.
Getting the sources
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 repo repository is the main development repository - download hourly snapshot.
Installing from sources
Once you have the source code, continue on to:
UnixInstall (good for Linux and MacOS X, too)
After installation
In the spirit of distributed SCM alternative versions can be found in several DeveloperRepos.
Mercurial is developed using Mercurial, so once you have Mercurial up and running you can get the source by cloning a repository. Repositories can be browsed with a web browser and will usually have links for downloading as bz2/zip/gz.
