I need to install git 1.8.* version.
- I added backports to my sources.list;
- Removed current installed git via
apt-get remove git
; - Executed
apt-get update
to update my packages list aptitude show git
still showsVersion: 1:1.7.10.4-1+wheezy1
What i am doing wrong?
Here is my /etc/apt/sources.list:
deb http://ftp.de.debian.org/debian/ wheezy main
deb-src http://ftp.de.debian.org/debian/ wheezy main
deb http://security.debian.org/ wheezy/updates main
deb-src http://security.debian.org/ wheezy/updates main
# wheezy-updates, previously known as 'volatile'
deb http://ftp.de.debian.org/debian/ wheezy-updates main
deb-src http://ftp.de.debian.org/debian/ wheezy-updates main
# deb multimedia
deb http://www.deb-multimedia.org wheezy main non-free
# wheezy backpors
deb http://ftp.de.debian.org/debian wheezy-backports main
P.S. i also tried to execute apt-get install git --reinstall
, but it has no effect – version is still 1.7
P.P.S. Yes, i am sure it should be 1.8. in backports: http://packages.debian.org/wheezy-backports/git
Best Answer
Backport repositories has lower priority than main/updates/security repositories. There are several ways you can install it:
Modify the apt.conf and add the following line:
Or in the preferences file: