Last active
November 19, 2015 14:32
-
-
Save dimitardanailov/36b0871d29550edbbc51 to your computer and use it in GitHub Desktop.
CentOS: Git from Source
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Source | |
| # https://git-scm.com/book/en/v2/Getting-Started-Installing-Git | |
| # Step 1 | |
| sudo yum -y install curl-devel expat-devel gettext-devel openssl-devel perl-devel zlib-devel | |
| # Step 2 _ Enable docbook2X | |
| # In order to be able to add the documentation in various formats (doc, html, info), | |
| # these additional dependencies are required | |
| # https://fedoraproject.org/wiki/EPEL#How_can_I_use_these_extra_packages.3F | |
| sudo yum -y install epel-release | |
| sudo yum -y install asciidoc xmlto docbook2X | |
| # Additionally, if you’re using Fedora/RHEL/RHEL-derivatives, you need to do this | |
| sudo ln -s /usr/bin/db2x_docbook2texi /usr/bin/docbook2x-texi | |
| # Step 3 | |
| mkdir -p ~/src && cd ~/src | |
| # You need to change version of git. | |
| gitVersion="2.6.3" | |
| rm v$gitVersion.tar.gz | |
| rm -rf git-$gitVersion | |
| wget https://github.com/git/git/archive/v$gitVersion.tar.gz | |
| tar -zxf v$gitVersion.tar.gz | |
| # Step 4 | |
| cd git-$gitVersion | |
| make configure | |
| ./configure --prefix=/usr | |
| make all doc info | |
| sudo make install install-doc install-html install-info |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment