Posts Tagged ‘installing’

Backporting mercurial 0.9.5 to Ubuntu 7.10 “Gutsy”

Friday, January 11th, 2008

I'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:

  1. $ vim /etc/apt/sources.list

  2. Add this line to the end:

    deb-src http://us.archive.ubuntu.com/ubuntu/ \
        hardy main restricted universe multiverse
    
  3. Save and exit.

  4. $ sudo apt-get update

  5. $ sudo apt-get build-dep mercurial

  6. $ fakeroot apt-get source -b mercurial

  7. $ 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. :)