in Gift

Install git on CentOS 5.10

New project update need to manually applied to vps server. Since the project use gitlab as source code basis then I need to clone it using git.

Git is not available using yum

# yum install git
Loaded plugins: fastestmirror
Determining fastest mirrors
* base:
* extras:
* updates:
base                                                                                                                                             | 1.1 kB     00:00
extras                                                                                                                                           | 2.1 kB     00:00
updates                                                                                                                                          | 1.9 kB     00:00
updates/primary_db                                                                                                                               | 592 kB     00:00
utter-ramblings                                                                                                                                  | 2.3 kB     00:00
Setting up Install Process
No package git available.
Nothing to do

The option is install it via rpmforge repository.
cd /root
rpm --import
rpm -K rpmforge-release-0.5.2-2.el5.rf.i386.rpm
rpm -i rpmforge-release-0.5.2-2.el5.rf.i386.rpm
yum install gui
—> Package neon.i386 0:0.25.5-10.el5_4.1 set to be updated

—> Package perl-URI.noarch 0:1.35-3 set to be updated
–> Finished Dependency Resolution

Dependencies Resolved

Package Arch Version Repository Size
git i386 rpmforge 8.1 M
Installing for dependencies:
neon i386 0.25.5-10.el5_4.1 base 101 k
perl-Git i386 rpmforge 86 k
perl-URI noarch 1.35-3 base 116 k
perl-YAML noarch 0.72-1.el5.rf rpmforge 84 k
subversion i386 1.6.11-12.el5_10 updates 3.1 M
subversion-perl i386 1.6.11-12.el5_10 updates 1.0 M

Transaction Summary
Install 7 Package(s)
Upgrade 0 Package(s)

Total download size: 13 M
Is this ok [y/N]: y

# git --version

git version

Great ready to clone the gitlab.