I am new to Ubuntu and Mercurial, so I wanted to see if anyone has experience installing Mercurial from source since it does not have an Ubuntu-specific distribution.
What is the best way for me to install Mercurial from sour开发者_JAVA百科ce? Any ideas? :)
Thanks, Alex
You can install Mercurial from source using pip
(apt-get install pip
if you don't already have it):
pip install mercurial
This will usually install it to /usr/local/bin/hg
, instead of the default /usr/bin/hg
.
If you want to install a specific version, you can always point pip
at one of the source releases, such as https://www.mercurial-scm.org/release/mercurial-1.8.1.tar.gz.
Lastly, if you really want to install from source, download one of those source tarballs, unzip it, and run
cd mercurial-1.8.1
python setup.py install
Yes it does. It's called mercurial. You can do:
sudo apt-get install mercurial
or use the graphical package manager.
If you need a later version, you can use the PPA. You certainly can build it from source if you want. The easiest way is to use apt-get source
, then build the package. If you want to build it from upstream source, that's possible too.
On Ubuntu/Debian: sudo apt-get install mercurial
精彩评论