ucan-lab / tips

5 stars 0 forks source link

CentOS7 Git2系インストール #4

Open ucan-lab opened 6 years ago

ucan-lab commented 6 years ago

default

# git --version
git version 1.8.3.1

source install

# yum -y remove git

# yum -y install curl-devel expat-devel gettext-devel openssl-devel zlib-devel perl-ExtUtils-MakeMaker

# GITVERSION="2.15.0" &&
wget https://www.kernel.org/pub/software/scm/git/git-$GITVERSION.tar.gz &&
tar -zxf git-$GITVERSION.tar.gz &&
cd git-$GITVERSION &&
make prefix=/usr/local all &&
make prefix=/usr/local install &&
cd ../ &&
rm -rf git-$GITVERSION* &&
unset GITVERSION

yum install

# yum -y remove git
# yum -y install https://centos7.iuscommunity.org/ius-release.rpm
# yum -y install git2u yum-utils
# yum-config-manager --disable ius

# git --version
git version 2.15.0