Skip to content

Instantly share code, notes, and snippets.

@dolmen
Created August 1, 2012 11:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dolmen/3226067 to your computer and use it in GitHub Desktop.
Save dolmen/3226067 to your computer and use it in GitHub Desktop.
git 1.7 on Debian Lenny
# Mise à jour du système
sudo vim /etc/sources.list
# - suppression de ftp.fr.debian.org qui ne contient plus lenny
# - ajout
# deb http://archive.debian.org/debian/ lenny main
# deb-src http://archive.debian.org/debian/ lenny main
gpg --keyserver subkeys.pgp.net --recv-keys AED4B06F473041FA
gpg -a --export AED4B06F473041FA | sudo apt-key add -
sudo apt-get update
sudo aptitude safe-upgrade
# Installation git depuis les backport
echo deb http://archive.debian.org/debian-backports/ lenny-backports main | sudo tee -a /etc/sources.list
sudo apt-get update
sudo aptitude install git
@ilyaevseev
Copy link

My solution:

  • EDIT /etc/apt/sources.list:

    deb http://archive.debian.org/debian            lenny            main non-free contrib
    deb http://archive.debian.org/debian-security   lenny/updates    main non-free contrib
    deb http://archive.debian.org/debian-backports  lenny-backports  main
    
  • apt-get update

  • apt-get install -t lenny-backports git-core --no-install-recommends

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment