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)

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容