December 7th, 2008

Installing git on Ubuntu Hardy

Posted by Antonio Rosado - 8 Comments

We should first remove git if you have installed it from repositories:

sudo apt-get remove git git-svn

Create a temporary directory on your local folder where you’ll download git.

mkdir ~/sources
cd sources/

Go to http://git.or.cz/ and download their latest stable version. Currently it’s v1.6.3.

wget http://kernel.org/pub/software/scm/git/git-1.6.3.tar.gz

Issue the apt-get command to get dependencies,

sudo apt-get build-dep git-core

extract the git source,

tar xzvf git-1.6.3.tar.gz

get inside the extracted git directory,

cd git-1.6.3
./configure
make
sudo make install

and to see if git is installed,

git --version
$ git version 1.6.3

Mclovin!!!

Hope all works for you, and let me know your comments.

    8 Responses to “Installing git on Ubuntu Hardy”

    1. Thanks! It worked on Ubuntu 8.10 (Intrepid Ibex).

    2. Fantastic! Worked like a charm. Thanks for the instructions. New to Linux, and needed the helping hand!

    3. Worked perfect (Ubuntu 8.04.2) – thanks!

    4. Worked with no problems on Ubuntu Server 8.10. Cheers!

    5. Worked great! Thank you very much!

    6. Thanks for the great instructions. Worked like a charm on Ubuntu 8.04.3 LTS (Hardy Heron). Wish I could find other ‘how-tos’ that were as good as this one.

    7. Thank you very much, it work without a hitch. Great tutorial!

    8. Very accessible. Thanks

    Leave a Reply