Debian – How to get the latest version of git-core on debian lenny

debiandebian-lennyrepositoryupdate

I'm trying to update my version of git that I'm using on the debian 5.0 lenny webserver (from 1.5 in the default package repository to at least 1.7 in the latest stable updates, according to the ubuntu ppa archives).

How would I add a repository to get a more stable version in Debian?

Best Answer

You can:

  1. Update your distro
  2. See if backports has the version you need and add lenny-backports to your apt
  3. Get the source package and rebuild it on your server (or on a Lenny machine, wich is more safe)
  4. Add squeeze repository to apt sources, then add the APT::Default-Release option to apt configuration and ask to install the new version. I will not describe that option in depth because I am very against it (and it will possibly break a lot of stuff) so only try that if you really want.