Install git from source Centos 6

In this tutorial, How to install Git from source Centos 6. Git the essential for DevOps Roles.

Install git from source Centos

Install “Development Tools” for Centos 6.

$ sudo yum -y groupinstall "Development Tools"

To install package prepare of git

$ sudo yum install -y gettext-devel openssl-devel perl-CPAN perl-devel zlib-devel curl-devel expat-devel openssl-devel gcc perl-ExtUtils-MakeMaker

Downloading Git from source link the latest here. I use git version 2.18.

$ wget https://www.kernel.org/pub/software/scm/git/git-2.18.0.tar.gz

Decompress and install Git from source

$ tar xzf git-2.18.0.tar.gz
$ cd git-2.18.0
$ make configure
$ ./configure
$ make prefix=/usr/local all
$ sudo make prefix=/usr/local install
$ git --version

Conclusion

Thought the article, you can “install Git from source Centos 6” as above. I hope will this your helpful. Thank you for reading the DevopsRoles page!

,

About HuuPV

My name is Huu. I love technology and especially Devops Skill such as Docker, vagrant, git so forth. I likes open-sources. so I created DevopsRoles.com site to share the knowledge that I have learned. My Job: IT system administrator. Hobbies: summoners war game, gossip.
View all posts by HuuPV →

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.