Updated with the latest git release 1.5.5.1
I am using Ubuntu 7.10 Gutsy and use git a lot, the latest version in gutsy repository is 1.5.2.5 but the latest version of Git is 1.5.5.1 so here’s a quick tip for compiling git.
First remove git if you have installed it from repositories:
sudo apt-get remove git git-svn
Then go into a temporary folder where you will download and compile git:
wget http://kernel.org/pub/software/scm/git/git-1.5.5.1.tar.bz2
sudo apt-get build-dep git-core
tar xjf git-1.5.5.1.tar.bz2
cd git-1.5.5.1/
./configure
make
sudo make install
If you have a dual core CPU and want to use them both to compile faster use make -j2 instead of make
Now enjoy your hand compiled git 🙂
PS: For git gui I had to to install tk (sudo apt-get install tk).
[…] How to install git on ubuntu This post on Piku’s blog worked for me, so I’ll refer you to Piku’s post. […]
Pingback by How to install git on ubuntu « Ruby on Rails/* — April 23, 2008 @ 6:30 pm
Thanks a lot! Just what i was looking for 🙂
Comment by Benny — April 25, 2008 @ 5:12 pm
[…] From Piku’s Blog Updating git on ubuntu: […]
Pingback by Where’s Lou » Blog Archive » Manage your Wordpress source code with Git — April 28, 2008 @ 5:45 am
[…] 3, 2008 · No Comments I have previously posted how to compile git on Ubuntu but while using git I wanted to consulte the manual to get information about some commands and git […]
Pingback by Compiling git with documentation « Piku’s Blog — May 3, 2008 @ 3:36 pm
Thanks for saving me some minutes.
Comment by Clemens — June 24, 2008 @ 3:11 pm
[…] pm on July 3, 2008 | # | Tags: git, ubuntu Updating git on Ubuntu: https://ropiku.wordpress.com/2008/04/14/updating-git-on-ubuntu/ […]
Pingback by Updating git on Ubuntu: http://ropiku.w … « Random Trap — July 3, 2008 @ 9:04 pm
Perfect just what I needed!
Comment by guillec — November 15, 2008 @ 5:32 am
[…] Piku: Updating git on Ubuntu […]
Pingback by Compiling git on Ubuntu — December 19, 2008 @ 1:13 pm
[…] to find a search result on Google to instructions that actually worked. I found the following on Piku’s Blog – the easy way to get Git […]
Pingback by Installing Git (1.6.1.3) on Ubuntu (8.04) « happy.net — February 28, 2009 @ 10:00 pm
Thanks Piku,you are the egg, you are the walrus.
Comment by Colin — March 27, 2009 @ 3:00 pm
You’re a life saver. Thankqq heaps 🙂
Comment by xxtinkerxx — July 2, 2009 @ 10:02 am
Worked great for me on Ubuntu Hardy. Thx!
Comment by Tom — January 28, 2012 @ 5:04 pm