Centos7安装最新版本git

安装git

查看git官网说明安装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/

ius源git.png

如上图所示,最新版本是236

删除老版本,并安装新版本git

 yum remove git
 yum install git236
 git --version

转载自 :Centos7安装最新版本git
更多相关内容传送门->赵席谋的个人博客 - (ximouzhao.com)

你可能感兴趣的:(Centos7安装最新版本git)