Wednesday, February 13, 2013

Install GIT from source

Important when you want to install latest version of git on your machine. (Yum repo may not contain latest version)

Following are the steps to install GIT from source:

  1. Install dependencies required by GIT:

$ yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel

2.      Download tar from http://git-scm.com/download (or http://code.google.com/p/git-core/downloads/list)

3.      Then, Compile and Install:

$ tar -zxf git-<version>.tar.gz

$ cd git-<version>

$ make prefix=/usr/local all

$ sudo make prefix=/usr/local install

-Sarang

No comments:

Post a Comment