Skip to content

Instantly share code, notes, and snippets.

@dergachev
Created July 3, 2013 14:28
Show Gist options
  • Save dergachev/5918390 to your computer and use it in GitHub Desktop.
Save dergachev/5918390 to your computer and use it in GitHub Desktop.
Installs git 1.7.10 on Ubuntu 12.04 (Precise) using packages from the upcoming 12.10 (Quantal) release. Should work for i386 and amd64.
#
# Installs git 1.7.10 on Ubuntu 12.04 (Precise) using packages from
# the upcoming 12.10 (Quantal) release. Should work for i386 and amd64.
#
# Adapted from http://pastebin.com/TXeMw1CY
#
HOST_ARCH=`dpkg-architecture -qDEB_HOST_ARCH_CPU`
wget http://mirrors.us.kernel.org/ubuntu/pool/main/g/git/git_1.7.10.4-1ubuntu1_${HOST_ARCH}.deb \
http://mirrors.us.kernel.org/ubuntu/pool/main/g/git/git-man_1.7.10.4-1ubuntu1_all.deb \
http://mirrors.us.kernel.org/ubuntu/pool/main/g/git/gitk_1.7.10.4-1ubuntu1_all.deb
sudo dpkg -i git-man_1.7.10.4-1ubuntu1_all.deb git_1.7.10.4-1ubuntu1_${HOST_ARCH}.deb gitk_1.7.10.4-1ubuntu1_all.deb
@m14t
Copy link

m14t commented Sep 16, 2013

Note that this requires dpkg-architecture which can be installed by sudo apt-get install dpkg-dev.

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