centos安装git

上次虚拟主机上没有yum,所以git是直接源代码编译安装的,略显麻烦;这次虚拟机上用yum install git居然找不到package。难不成非得要编译?按说git这样的东西应该包含进来才对啊。再仔细一找,原来是需要先添加EPEL(Extra Packages for Enterprise Linux) repository:

rpm -Uvh http://download.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm

然后就可以yum安装了。

具体参考:http://fedoraproject.org/wiki/EPEL/FAQ#How_can_I_install_the_packages_from_the_EPEL_software_repository.3F

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.