Backporting mercurial 0.9.5 to Ubuntu 7.10 “Gutsy”
Friday, January 11th, 2008I've fallen in love with Mercurial. It's used by projects and people that I respect, and I'm using it more and more.
I wanted to make sure I was using the latest version, but I didn't want to uninstall gutsy's version 0.9.4 and install it from source, nor did I want to upgrade my entire system to hardy. I've played around with such bleeding-edge things in the past, and while I still like to bleed sometimes, the Linux desktop is not one of those areas in which I desire to. :)
So, what to do?
Fortunately, it's easy to backport it from hardy. Here's what I did:
$ vim /etc/apt/sources.list
Add this line to the end:
deb-src http://us.archive.ubuntu.com/ubuntu/ \ hardy main restricted universe multiverseSave and exit.
$ sudo apt-get update
$ sudo apt-get build-dep mercurial
$ fakeroot apt-get source -b mercurial
$ sudo dpkg -i mercurial_0.9.5-2_i386.deb
Lather, rinse, then repeat steps 4 through 7 as necessary if you're anxious. Or, just wait three months for hardy. :)