执行sudo yum install -y git后出错:
Error: Package: git-1.7.12.4-1.el5.rf.x86_64 (dag)
Requires: libcurl.so.3()(64bit)Available: curl-7.15.5-17.el5_9.x86_64 (base)
libcurl.so.3()(64bit)
Installed: curl-7.19.7-26.el6_1.2.x86_64 (@anaconda-RedHatEnterpriseLinux-201111171049.x86_64/6.2)
Not found
Available: curl-7.19.7-46.el6.x86_64 (163-repo)
Not found
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
找安装包出错了。我是redhat6,不该用el5。 解决方式如下:
查看可用的包: yum provides git
发现有 git-1.7.1-3.el6_4.1.x86_64。
所以:sudo yum install -y git-1.7.1-3.el6_4.1.x86_64 搞定。