Piku’s Blog

April 14, 2008

Updating git on ubuntu

Filed under: Git — Tags: , , , , , — Piku @ 8:53 pm

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).

About these ads

13 Comments »

  1. […] 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

  2. Thanks a lot! Just what i was looking for :)

    Comment by Benny — April 25, 2008 @ 5:12 pm

  3. […] 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

  4. […] 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

  5. Thanks for saving me some minutes.

    Comment by Clemens — June 24, 2008 @ 3:11 pm

  6. […] pm on July 3, 2008 | # | Tags: git, ubuntu Updating git on Ubuntu: http://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

  7. Perfect just what I needed!

    Comment by guillec — November 15, 2008 @ 5:32 am

  8. […] Piku: Updating git on Ubuntu […]

    Pingback by Compiling git on Ubuntu — December 19, 2008 @ 1:13 pm

  9. […] 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

  10. Thanks Piku,you are the egg, you are the walrus.

    Comment by Colin — March 27, 2009 @ 3:00 pm

  11. You’re a life saver. Thankqq heaps :)

    Comment by xxtinkerxx — July 2, 2009 @ 10:02 am

  12. Worked great for me on Ubuntu Hardy. Thx!

    Comment by Tom — January 28, 2012 @ 5:04 pm

  13. […] This tutorial worked great for me. Here’s what you should do: […]

    Pingback by How To Upgrade Git On Ubuntu Hardy? | Click & Find Answer ! — April 21, 2013 @ 10:20 am


RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

The Shocking Blue Green Theme. Blog at WordPress.com.

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: