安裝git
查看git官網(wǎng)說明安裝git需要第三方isu源:
https://git-scm.com/download/linux
Red Hat Enterprise Linux, Oracle Linux, CentOS, Scientific Linux, et al.
RHEL and derivatives typically ship older versions of git. You can download a tarball and build from source, or use a 3rd-party repository such as the IUS Community Project to obtain a more recent version of git.
安裝ius源
ius源官方:https://ius.io/setup
安裝命令
yum install \
https://repo.ius.io/ius-release-el7.rpm \
https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
查看ius源最新的git版本
https://repo.ius.io/7/x86_64/packages/g/
如上圖所示,最新版本是236
刪除老版本,并安裝新版本git
yum remove git
yum install git236
git --version
轉(zhuǎn)載自 :Centos7安裝最新版本git
更多相關(guān)內(nèi)容傳送門->趙席謀的個人博客 - (ximouzhao.com)