Gitting git-1.5.3.x installed in Ubuntu

I’m looking into git as an alternative to subversion.

As most of my servers use a non-standard port for sshd I was interested in trying out git-1.5.3.x for it’s support for ssh://name@host:port/ but ubuntu gutsy only had 1.5.2.5 available so off to #git I went:

For Ubuntu Gutsy:

  1. apt-get install devscripts fakeroot
  2. dget -x http://ftp.debian.org/debian/pool/main/g/git-core/git-core_1.5.3.5-1.dsc
  3. cd git-core-1.5.3.5
  4. apt-get build-dep git-core
  5. dpkg-buildpackage -rfakeroot -us -uc

For Ubuntu Dapper:

Update: Apparently the version of dpkg-buildpackage that comes with dapper is too old, so in the end I upgraded Dapper > Edgy > Feisty > Gutsy

  1. apt-get install devscripts fakeroot
  2. wget http://www.backports.org/debian/pool/main/g/git-core/git-core_1.5.3.4-1bpo40+1.dsc (as dget doesn’t exist in devscripts on dapper)
  3. wget http://www.backports.org/debian/pool/main/g/git-core/git-core_1.5.3.4-1bpo40+1.diff.gz
  4. wget http://www.backports.org/debian/pool/main/g/git-core/git-core_1.5.3.4.orig.tar.gz
  5. dpkg-source -x git-core_1.5.3.4-1~bpo40+1.dsc
  6. cd git-core-1.5.3.4
  7. apt-get build-dep git-core
  8. dpkg-buildpackage -rfakeroot -us -uc

(You may need to manually install libsvn-core-perl && tcl8.4 )

Many thanks to MadCoder on #git for helping me out with this.

I’ll be posting about my exploits with git in future posts.


Torna a articles