0

I'd like to install Mercurial (HG) on Bash on Ubuntu on Windows. Though Mercurial official site offers download for both Windows and Ubuntu, it does not offer a download for Bash on Ubuntu on Windows (AKA Windows Subsystem for Linux). How can I install Mercurial (HG) for Bash on Ubuntu on Windows, and if possible from Bash on Ubuntu on Windows. Which is the right Ubuntu package and how to install it?

Ben Carp
  • 24,214
  • 9
  • 60
  • 72

1 Answers1

4

You can install mercurial via apt:

$ sudo apt-get install mercurial

If you want a more up-to-date version you can use the mercurial PPA:

$ sudo add-apt-repository ppa:mercurial-ppa/releases
$ sudo apt-get update
$ sudo apt-get install mercurial
ngoldbaum
  • 5,430
  • 3
  • 28
  • 35
  • To make work on Ubuntu 18.04 I edited the mercurial source file in /etc/apt/sources.list.d then I replaced the word bionic with zesty in the file. – Trey Brister Apr 17 '20 at 21:52
  • This is not working for me under WSL2... after all that it tells me `mercurial is already the newest version (5.3.1-1ubuntu1).` but it's obviously NOT the latest version because it refuses to clone a repo due to it having newer features that it doesn't support. – Michael May 21 '23 at 02:02