Created
December 7, 2018 00:27
-
-
Save ronaldosena/113214c4a80fefd278e3db942dd24d82 to your computer and use it in GitHub Desktop.
Install latest git on Cent-OS 7
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
| # Check if you get GCC instaled | |
| # You should see the version, if not you can install with | |
| # sudo yum groupinstall "Development tools" | |
| gcc -v | |
| # Change into your download folder | |
| cd | |
| cd Downloads | |
| # Download lastest git version from git-scm.com (at this time 2.9.5) | |
| sudo wget https://mirrors.edge.kernel.org/pub/software/scm/git/git-2.9.5.tar.gz | |
| # Unpack the file | |
| tar -zxf git-2.9.5.tar.gz | |
| # Change into the folder | |
| cd git-2.9.5 | |
| # Install the version you just download | |
| ./configure | |
| make | |
| sudo make install | |
| # If you want to remove | |
| # sudo make uninstall |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment