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?


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.
|improve this answer|||||
  • This, I found out just a bit ago, (should have refreshed) is true. – Kzqai Feb 25 '11 at 0:16

Ah, found it, here:


Had to switch out "squeeze-backports" with "lenny-backports" before it would work, but it worked in the end, and got me up to version 1.7, so that's all I needed.

|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.