Created
February 19, 2015 13:37
-
-
Save zaccrites/24480b5649f7dccb098b to your computer and use it in GitHub Desktop.
Downloads and installs Git 2.3.0 from source on Ubuntu
This file contains 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
#!/bin/bash | |
# Make sure to run as root. | |
apt-get install -y libcurl4-gnutls-dev libexpat1-dev gettext libz-dev libssl-dev | |
cd ~ | |
mkdir git | |
cd git | |
wget https://github.com/git/git/archive/v2.3.0.tar.gz | |
tar -xzf git-*.tar.gz | |
cd git-* | |
make configure | |
./configure --prefix=/usr | |
make all | |
make install | |
cd ~ | |
rm -rf git |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment