Skip to content

Instantly share code, notes, and snippets.

@frullah
Last active July 18, 2020 00:40
Show Gist options
  • Save frullah/3c8e2763fcf34c5cad4e01835b53af2b to your computer and use it in GitHub Desktop.
Save frullah/3c8e2763fcf34c5cad4e01835b53af2b to your computer and use it in GitHub Desktop.
install edge version Git
version=2.27.0
source_code_path=/tmp/git-${version}
wget https://mirrors.edge.kernel.org/pub/software/scm/git/git-${version}.tar.gz -O ${source_code_path}.tar.gz
tar -xzf ${source_code_path}.tar.gz -C /tmp
# install Git dependencies
sudo apt-get install -y dh-autoreconf libcurl4-gnutls-dev libexpat1-dev \
gettext libz-dev libssl-dev
# Install additional required dependencies for docs
sudo apt-get install -y asciidoc xmlto docbook2x install-info
# configure and build
cd $source_code_path
make configure
./configure --prefix=/usr
make all doc info
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment