centos 直接安装yum 不能的解决方案

升级yum版本
需要先添加EPEL(Extra Packages for Enterprise Linux) repository:

rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm

然后yum install git就能安装了。

参考:http://fedoraproject.org/wiki/EPEL/FAQ#HowcanIinstallthepackagesfromtheEPELsoftwarerepository.3F

转贴:http://51hired.com/questions/13038/centos%E4%B8%8A%E5%A6%82%E4%BD%95yum%E5%AE%89%E8%A3%85git

About allan

一个很不错的人
This entry was posted in Linux. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>