Skip to content

Instantly share code, notes, and snippets.

@ronaldosena
Created December 7, 2018 00:27
Show Gist options
  • Select an option

  • Save ronaldosena/113214c4a80fefd278e3db942dd24d82 to your computer and use it in GitHub Desktop.

Select an option

Save ronaldosena/113214c4a80fefd278e3db942dd24d82 to your computer and use it in GitHub Desktop.
Install latest git on Cent-OS 7
# 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