Install Git

Here are steps to install Git system

When we use Git, we may use it as a Git server or a Git client. No matter which one, we use the same installation process. So, what is the difference between a Git server and a client? The difference falls on the Git daemon and the repository type we initialize. In this article, I only discuss the installation here. The repository operations will be talked elsewhere.

Step 1
Download Git from https://github.com/git/git

Step 2
Install dependency libraries

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

Install dependency libraries to generate documentation.(optional)

yum install asciidoc xmlto docbook2x

Notice. This YUM command may not work to install the documentation libraries due to loss of maintenance of packages.

Step 3

tar -zxf git-2.0.0.tar.gz
cd git-2.0.0
make configure
./configure --prefix=/usr

If you want to install Git system only

make all
make install

If you want to install documentation

make all doc info
make install install-doc install-html install-info

oliver

Leave a Reply

Your email address will not be published. Required fields are marked *


*