Skip to content

Git from Source on Centos/RHEL 7

[code lang=”bash” title=”Update Cache”]

$ sudo yum update


[code lang=”bash” title=”Install Dependencies”]

$ sudo yum groupinstall “Development Tools”
$ sudo yum install gettext-devel openssl-devel perl-CPAN perl-devel zlib-devel

[code lang=”bash” title=”Download the git binaries”]

$ wget


[code lang=”bash” title=”Extract the binaries”]
$ tar xf git-2.16.2.tar.gz

[code lang=”bash” title=”Configure binaries”]
$ ./configure

[code lang=”bash” title=”make binaries”]
$ make
$ make install

[code lang=”bash” title=”Check Installation”]
$ git –version

One thought on “Git from Source on Centos/RHEL 7 Leave a comment

Leave a Reply

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