Why does the Debian Lenny git package not install git?
The package you most likely want is git-core.
(Works just fine without adding an extra repository.)
Update: This has now been fixed; in squeeze and beyond the git package is now called git.
To get ~1.7.1 use this method. If you want ~1.5.6.5 then use andol's answer.
This is because git
is a dummy package in Lenny which provides gnuit.
- Package: git (4.9.4-1)
However, you can get around this by using the lenny-backports git package:
UPDATE: As of September 5th 2010, this method has changed slightly as backports.org is being phased out the instructions now follow the recommended solution to install from the latest Debian backports.
-
Add this line:
deb http://archive.debian.org/debian-backports/ lenny-backports main contrib non-free
to your /etc/apt/sources.list.
-
Run:
apt-get update
.
If you get get a security warning about NO_PUBKEY AED4B06F473041FA, run step 3, 4 and 5 -- if not, skip to step 6.Run:
gpg --keyserver pgp.mit.edu --recv-keys AED4B06F473041FA
Run:
gpg --armor --export AED4B06F473041FA| apt-key add -
Run:
apt-get update
again to confirm.Note, adding the debian-backport-keyring is no longer necessary.
Run:
apt-get -t lenny-backports install git
-
Run:
git --version
git version 1.7.2.3