Skip to content

Instantly share code, notes, and snippets.

@coder4web
Last active February 27, 2018 10:05
Show Gist options
  • Save coder4web/de010f639d0b51f8f7c0 to your computer and use it in GitHub Desktop.
Save coder4web/de010f639d0b51f8f7c0 to your computer and use it in GitHub Desktop.
How To Install Mercurial SCM on Amazon AMI
# https://www.mercurial-scm.org/
# https://www.mercurial-scm.org/wiki/UnixInstall#System-wide_installation
# rooted version :)
sudo -i
yum list mercurial
#Loaded plugins: priorities, update-motd, upgrade-helper
#Error: No matching Packages to list
yum groupinstall "Development Tools"
cd /usr/local/src
wget http://mercurial.selenic.com/release/mercurial-3.7.1.tar.gz
tar xf mercurial-3.7.1.tar.gz
cd mercurial-3.7.1
make install
/usr/local/bin/hg --version
#bash: hg: command not found
echo 'export PATH=${PATH}:/usr/local/bin' > /etc/profile.d/custom-path.sh
logout
#login again
hg --version
#Mercurial Distributed SCM (version 3.7.1)
hg debuginstall
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment