「Git」- 安装(CentOS) @20210119

蹲街弑〆低调 提交于 2021-01-19 11:37:12

Git 2.x on CentOS 7.x(安装新版本)

################################################################################
# Kali GNU/Linux Rolling
################################################################################
apt-get install git

################################################################################
# CentOS 7(安装最新版本)
################################################################################
yum install -y \
    https://repo.ius.io/ius-release-el7.rpm \
    https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
yum makecache
yum install git2u-all.noarch # 全家桶(11/20/2019 git version 2.16.5)

# 安装更新的版本
# yum install http://opensource.wandisco.com/centos/6/git/x86_64/wandisco-git-release-6-1.noarch.rpm
# yum install http://opensource.wandisco.com/centos/7/git/x86_64/wandisco-git-release-7-1.noarch.rpm
yum install -y http://opensource.wandisco.com/centos/7/git/x86_64/wandisco-git-release-7-2.noarch.rpm
yum makecache
yum install git #(11/20/2019 git version 2.22.0)

参考文献

WikiNotes/安装(CentOS)
IUS/Setup
Update Git to the latest (help)
How to install latest version of git on CentOS 7.x/6.x


标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!