krish – 起死回生 [Wake up from death & return to life.]

September 29, 2009

Installing git client

Filed under: GNU/Linux — krish @ 9:21 pm
Tags: , ,

Git is available at as source distribution.

It has to be built on a box first and then can be used by porting it on any client (debatable).


1. Install gcc
# yum install gcc

2. Install zlib-devel
# yum install zlib-devel

3. Install curl-devel
# yum install curl-devel

Download and Unpack

Browse and choose the version that you need to install.

The latest stable at the time of writing this documentation is

# wget

# tar xvzf git-

Building the Source

1. Create a build target directory

  1. mkdir /home/dimdim

2. Configure the source tree

  1. cd git-
  2. ./configure –prefix=/home/dimdim/git_root
  3. make
  4. make install

3. Archive the build target if you need it to be used on different machine

  1. cd /home/dimdim
  2. tar cvzf git_root.tgz git_root

Setting up environment to use Git

# echo “PATH=/home/dimdim/git_root/bin:$PATH” >> ~/.bash_profile

# echo “export PATH” >> ~/.bash_profile

# source ~/.bash_profile

Using Git

# mkdir -p /usr/local/mygitsources

# cd /usr/local/mygitsources

# git clone git://

To use it on other machines

1. Copy the git_root.tgz archive on the target machine. (use scp, ftp… as per your convenience)

2. Unpack git_root.tgz in your target path

# cd /my/target/path

# tar xvzf git_root.tgz

3. Set up environment variable for PATH

# echo “PATH=/my/target/path/git_root/bin:$PATH” >> ~/.bash_profile

# echo “export PATH” >> ~/.bash_profile

# source ~/.bash_profile

4. Start using `git` from anywhere on the filesystem.


Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Please leave a Reply / Discuss this topic here :)

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

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

Google+ photo

You are commenting using your Google+ 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 )


Connecting to %s

Create a free website or blog at

The Male Factor

#1 Site For Research on Men and Boys

Rough Draft

by Atteris Amarth and Darrek Ringo

The Kochi Post.

Read by all + Influenced by none


A signature of Kiran


This blog is just for additional and extension share of it's main frames. No activity is planned from here

krish - 起死回生 [Wake up from death & return to life.]

Get a sneak peek into krish's life, work and passion. is the best place for your personal blog or business site.

A Tale of Two and a Half

Monika Amita Bakshi

%d bloggers like this: