Created
August 24, 2019 15:34
-
-
Save sdhuang32/349d55ace0324e57681df01c1742038f to your computer and use it in GitHub Desktop.
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
#!/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
Nice! Thanks for sharing this!