$ sudo touch /etc/yum.repos.d/atrpms.repo /etc/yum.repos.d/dag.repo
/etc/yum.repos.d/atrpms.repo
[atrpms] name=ATrpms for Enterprise Linux $releasever - $basearch baseurl=http://dl.atrpms.net/el$releasever-$basearch/atrpms/stable enabled=0 gpgcheck=1 gpgkey=http://ATrpms.net/RPM-GPG-KEY.atrpms
/etc/yum.repos.d/dag.repo
[dag] name=Dag enabled=0 baseurl=http://dag.freshrpms.net/redhat/el4/en/$basearch/dag http://ftp.heanet.ie/pub/freshrpms/pub/dag/redhat/el4/en/i386/dag/ gpgcheck=1 gpgkey=http://dag.wieers.com/packages/RPM-GPG-KEY.dag.txt
yum安装
$ yum --enablerepo=dag --enablerepo=atrpms install git