如何在 CentOS 8.x/7.x/6.x 上安装最新版本的 git [英] How to install latest version of git on CentOS 8.x/7.x/6.x
问题描述
我通常使用:
yum install git
它没有在我的 CentOS 6 上安装最新版本的 git.我如何更新到 CentOS 6 的最新版本的 git?该解决方案可适用于更新版本的 CentOS,如 CentOS 7.
It did not install the latest version of git on my CentOS 6. How can I update to the latest version of git for CentOS 6? The solution can be applicable to newer versions of CentOS such as CentOS 7.
推荐答案
您可以使用 WANDisco 的 CentOS 存储库来安装 Git 2.x:对于 CentOS 6,用于 CentOS7
You can use WANDisco's CentOS repository to install Git 2.x: for CentOS 6, for CentOS 7
安装 WANDisco 存储库包:
Install WANDisco repo package:
yum install http://opensource.wandisco.com/centos/6/git/x86_64/wandisco-git-release-6-1.noarch.rpm
- or -
yum install http://opensource.wandisco.com/centos/7/git/x86_64/wandisco-git-release-7-1.noarch.rpm
- or -
yum install http://opensource.wandisco.com/centos/7/git/x86_64/wandisco-git-release-7-2.noarch.rpm
安装最新版本的 Git 2.x:
Install the latest version of Git 2.x:
yum install git
验证安装的 Git 版本:
Verify the version of Git that was installed:
git --version
截至 2020 年 3 月 2 日,WANDisco 的最新可用版本为 2.22.0.
As of 02 Mar. 2020, the latest available version from WANDisco is 2.22.0.
这篇关于如何在 CentOS 8.x/7.x/6.x 上安装最新版本的 git的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!