Skip to content

Instantly share code, notes, and snippets.

@rxm
Last active June 7, 2021 23:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rxm/5f9582b0ed1ec18e4b31c1ee2e642b9e to your computer and use it in GitHub Desktop.
Save rxm/5f9582b0ed1ec18e4b31c1ee2e642b9e to your computer and use it in GitHub Desktop.
Mercurial 5 on AWS Linux 2

Installing a recent version of Mercurial on AWS Linux 2

The default Yum repositories for an EC2 AWS Linux 2 machine will install Mercurial 2.6.2. Version 5.8 is the most recent version available as of June 2021. AWS has announced that they will not be upgrading the Mercurial RPM (for us three Mercurial fans). To get a newer version of Mercurial on a AWS Linux 2 machine one needs to install it oneself. It is real easy:

# pre-requisites
sudo yum install -y python3-devel gcc

# install Mercurial from PIP
# uninstall of old mercurial was not needed
sudo pip3 install Mercurial

# check it is there 
hg version
# prints 5.8 or newer

That's it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment