Centos7使用yum免编译安装最新版本git

内容纲要
查看git官网说明安装git需要第三方isu源

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
Centos7使用yum免编译安装最新版本git

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注

滚动到顶部