Manual installation of Mercurial (hg)

I will give an example of installing on Linux the latest version of Mercurial, downloaded from the official site.

If the system already has Mercurial, then delete, for example, in Ubuntu this can be done like this:

hg version
which hg
sudo apt-get remove mercurial --purge
sudo apt-get autoremove
sudo apt-get remove mercurial-common --purge

Now install the necessary components:

sudo apt install python-dev python-docutils gcc

Download from the official Mercurial website and install:

tar xzvf stable.tar.gz
cd Mercurial-stable
sudo make install
which hg

Leave a comment

Leave a Reply