Thursday, March 01, 2012

Installing git on Oracle Linux/RHEL

There is no direct way of installing git on Oracle Linux/RHEL as yum repositories do not have git and git-core packages and there is no rpm package available.
Start terminal and download tar bundle of git from here :-
http://kernel.org/pub/software/scm/git/
In my case,
wget http://kernel.org/pub/software/scm/git/git-0.7.tar.gz

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



Then extract the two files using following commands (or via the graphical shell)


tar xvfz git-0.7.tar.gz

tar xvfz git-core-0.99.6.tar.gz



build the packages using


cd git-0.7

make



And install using


make install


Similarly for git-core


cd git-core-0.99.6

make

make install


If make install complains that /home/<home directory>/bin is not found create the bin directory inside your home directory and then run make install. Later in /home/<home directory>/bin use sudo make install /bin

1 comment:

Thank you for your feedback