Compile git from source

03 Jul 2016

This was done on Ubuntu 16.04. Sometimes, it's just better to compile git from source rather than waiting for the packages to catch up.

su -
apt-get install \
    build-essential flex bison \
    libreadline6-dev zlib1g-dev \
    libnl1 libssl-dev libnl-dev \
    libssl-dev \
    libcurl4-gnutls-dev \
    libexpat1-dev \
    tcl tk \
    tcl-dev gettext \
    asciidoc \
    docbook2x
cd /usr/local/src
wget https://github.com/git/git/archive/v2.8.3.tar.gz
mv v2.8.3.tar.gz git-2.8.3.tar.gz .
tar -xzvf git-2.8.3.tar.gz
cd git-2.8.3/
make prefix=/usr/local/git-2.8.3 all doc info
make prefix=/usr/local/git-2.8.3 install install-doc install-html install-info