centos7.x yum源安装git2.x版本
前言不使用ius仓库已不能安装git2.x版本安装安装epel-releaseyum -y install epel-release安装ius仓库cat > /etc/yum.repos.d/ius.repo <<-EOF[ius]name = IUS for Enterprise Linux 7 - $basearchbaseurl = https://repo.ius.io/
·
前言
不使用ius仓库已不能安装git2.x版本
安装
安装epel-release
yum -y install epel-release
安装ius仓库
cat > /etc/yum.repos.d/ius.repo <<-EOF
[ius]
name = IUS for Enterprise Linux 7 - $basearch
baseurl = https://repo.ius.io/7/$basearch/
enabled = 1
repo_gpgcheck = 0
gpgcheck = 1
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-IUS-7
[ius-debuginfo]
name = IUS for Enterprise Linux 7 - $basearch - Debug
baseurl = https://repo.ius.io/7/$basearch/debug/
enabled = 0
repo_gpgcheck = 0
gpgcheck = 1
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-IUS-7
[ius-source]
name = IUS for Enterprise Linux 7 - Source
baseurl = https://repo.ius.io/7/src/
enabled = 0
repo_gpgcheck = 0
gpgcheck = 1
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-IUS-7
EOF
搜索git2.x版本
yum search git
... ...
git222.x86_64 : Fast Version Control System
git224.x86_64 : Fast Version Control System
... ...
安装git2.x
yum -y install git222
结语
… …
更多推荐
已为社区贡献5条内容
所有评论(0)