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//bin is not found create the bin directory inside your home directory and then run make install. Later in /home//bin use sudo make install /bin

Advertisements

One thought on “Installing git on Oracle Linux/RHEL

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s