如何在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 [~]# 

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