【问题标题】:yum installs an older version of git on Centosyum 在 Centos 上安装旧版本的 git
【发布时间】:2021-09-21 20:57:39
【问题描述】:

当我在 Windows 或 Ubuntu 上安装 git 时,我得到的最新版本的 git 接近此处列出的内容:

https://github.com/git/git/releases

但是,当我在 centos Linux 上安装 git 时,我得到的是旧版本的 git:

yum check-update

yum install -y git

git --version

git version 1.8.3.1

版本 1.8.3.1 太旧了。我想我在这里遗漏了一些东西。

为什么我在 centos 上得到这么旧版本的 git?

【问题讨论】:

标签: git centos


【解决方案1】:

你必须先安装 wandisco 仓库,然后更新 git。

在 URL 中使用您的 centos 版本。

yum install http://opensource.wandisco.com/centos/7/git/x86_64/wandisco-git-release-7-2.noarch.rpm

yum update git

【讨论】:

  • 成功了,谢谢。你知道为什么这里没有记录吗:git-scm.com/download/linux
  • 虽然较新的git 不太可能引起任何麻烦,但 CentOS 中的东西较旧是有原因的 - 稳定性。一切都是和谐构建的,确保软件包相互依赖,没有任何问题。
猜你喜欢
  • 2018-12-17
  • 2016-03-09
  • 2020-12-20
  • 2016-10-12
  • 2015-01-13
  • 2011-01-08
  • 2015-07-22
  • 2012-03-14
  • 1970-01-01
相关资源
最近更新 更多