Skip to content

Instantly share code, notes, and snippets.

@IngmarBoddington
Forked from sdhuang32/build-git.sh
Created May 5, 2021 20:10
Show Gist options
  • Save IngmarBoddington/62f966a62905447b7f1115e544928c6a to your computer and use it in GitHub Desktop.
Save IngmarBoddington/62f966a62905447b7f1115e544928c6a to your computer and use it in GitHub Desktop.
#!/bin/bash
GIT_VERSION="2.23.0"
yum install -y gcc wget make curl-devel expat-devel \
gettext-devel openssl-devel perl-devel zlib-devel
cd ~
if [ ! -f git-${GIT_VERSION}.tar.gz ]; then
wget https://mirrors.edge.kernel.org/pub/software/scm/git/git-${GIT_VERSION}.tar.gz
fi
if [ -d git-${GIT_VERSION} ]; then
rm -rf git-${GIT_VERSION}
fi
tar zxvf git-${GIT_VERSION}.tar.gz
cd git-${GIT_VERSION}; ./configure --prefix=/share/Public/toolchain/
make all
make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment