CentOS 5 通过yum安装git

刚开始安装如下结果:

$ yum install git
Setting up Install Process
Parsing package install arguments
No package git available.
Nothing to do

网上找到的安装方法如下:

首先要下载rpmforge-release

wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el5.rf.i386.rpm

验证安装RPM包

$ rpm --import http://apt.sw.be/RPM-GPG-KEY.dag.txt
$ rpm -K rpmforge-release-0.5.2-2.el5.rf.i386.rpm
$ rpm -i rpmforge-release-0.5.2-2.el5.rf.i386.rpm

最后GIT就可以安装了

$ sudo yum install git-gui
注意,如果是64版本系统要把RPM包换成64位的

发表评论

电子邮件地址不会被公开。 必填项已用*标注

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