centos5.5 安装git
First, download the rpmforge-release
package:
$ wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el5.rf.i386.rpm
Next, verify and install the package:
$ 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
And now we should be able to install git
:
$ sudo yum install git-gui
yum
will work out the dependancies, and ask you at relevant points if you want to proceed. Press y for Yes, and nor return for No.