I installed git using sudo apt upgrade git
but it only installed 1.9.1 version even though the latest git available is 2.11.0.
When I tried running apt-cache policy git, I got the following
$apt-cache policy git
git:
Installed: 1:1.9.1-1ubuntu0.3
Candidate: 1:1.9.1-1ubuntu0.3
Version table:
*** 1:1.9.1-1ubuntu0.3 0
500 http://archive.ubuntu.com/ubuntu/ trusty-updates/main amd64 Packages
500 http://security.ubuntu.com/ubuntu/ trusty-security/main amd64 Packages
100 /var/lib/dpkg/status
1:1.9.1-1 0
500 http://archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
Just try it:
sudo add-apt-repository ppa:git-core/ppa
sudo apt-get update
sudo apt-get install git
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With