Install Git From Source On Linux

If you are like me and want to install git-core core from source instead of one to the many binary packages out or you just have a distro that does have a binary for it. Here is what you will need to get it installed.

  • POSIX-compliant shell
  • GCC – gnu c compiler
  • GNU Interactive Tools
  • Perl 5.8 or Later
  • Openssl
  • Openssh
  • zlib
  • libcurl
  • expat

Once all you have verified or install on the required packages. You can download the source fromĀ Git Homepage.

shell$ wget http://git-core.googlecode.com/files/git-1.x.x.tar.gz

shell$ tar -zxf git-1.x.x.tar.gz

shell$ cd git-1.x.x

shell$ ./configure –prefix=[install_path]

shell$ make all

shell$ sudo make install

A little old school and not the hard.

Resources:
http://git-scm.com/
http://ruby.about.com/od/git/a/2.htm