Last active
July 18, 2020 00:40
-
-
Save frullah/3c8e2763fcf34c5cad4e01835b53af2b to your computer and use it in GitHub Desktop.
install edge version Git
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
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