如何在 CENTOS 5.5 上安装 git

如何在 CENTOS 5.5 上安装 git

如何在 CENTOS 5.5 机器上安装 git?我尝试从 yum 安装它,但收到以下消息。

root@host [~]# sudo yum install git
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * addons: centos.mirrors.tds.net
 * base: mirror.ubiquityservers.com
 * extras: mirrors.serveraxis.net
 * updates: pubmirrors.reflected.net
addons                                                   |  951 B     00:00
base                                                     | 2.1 kB     00:00
extras                                                   | 2.1 kB     00:00
updates                                                  | 1.9 kB     00:00
Excluding Packages in global exclude list
Finished
Setting up Install Process
No package git available.
Nothing to do
root@host [~]#

答案1

答案2

尝试下载或者在 /etc/yum.repos.d/CentOS-Base.repo 中启用“testing”标签

相关内容