Install Git 2.7.0 on CentOS/RHEL 7/6 & Fedora 23/22

Git has released 2.7.0 version on Jan 04, 2016. Git is a free and open source distributed version control system . It is designed to handle a small to very large projects with speed and efficiency. To read more details and changes about Git 2.7.0 read Git release notes. If you are using a Git repository for your development, then you must required a git client on your system and you need to install git client on your workstation system.
 For beginners visit Git console on your browser and learn Git uses and command line tips.

Step 1 – Install Required Packages

Before installing Git from source code, make sure you have already installed required packages on your system. If not use following command to install required packages.
# yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel 
# yum install gcc perl-ExtUtils-MakeMaker

Step 2 – Download and Install Git

Download latest Git source code from kernel git or simply use following command to download Git 2.7.0.
# cd /usr/src
# wget
# tar xzf git-2.7.0.tar.gz
After downloading and extracting Git source code, Use following command to compile source code.
# cd git-2.7.0
# make prefix=/usr/local/git all
# make prefix=/usr/local/git install
# echo "export PATH=$PATH:/usr/local/git/bin" >> /etc/bashrc
# source /etc/bashrc

Step 3 – Check Git Version

After completing above installation steps. you have successfully install Git on your system. Let’s use following command to check git version.

# git --version

git version 2.7.0


About Author:

I am a Linux Administrator and Security Expert with this site i can help lot's of people about linux knowladge and as per security expert i also intersted about hacking related news.TwitterFacebook

Newer Post
Older Post


Post a Comment