Contents
Update Git Centos – to version 1.7.11+ (on CentOS 6.x)
Overview
If you want to update your Git to newer version then on CentOS repository, use the following instructions
Downloading RPMForge repo
cd /tmp
# for 32 bit:
wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.i686.rpm
# for 64 bit:
wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm
Note: Visit here to see if newer version exist.
Installing RPMForge
rpm –import http://apt.sw.be/RPM-GPG-KEY.dag.txt
# for 32 bit:
rpm -i rpmforge-release-0.5.3-1.el6.rf.i686.rpm
# for 64 bit:
rpm -i rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm
Open Extra Repo
yum clean all
cd /etc/yum.repos.d
edit using vi/vom/mc rpmforge.repo:
change the enabled flag to enabled=1 in the section [rpmforge-extras].
Update Git
yum update git
yum provides git will help you see all versions available.
git –version
Will show you have the new release installed. (1.7.11.3 for me)
That’s it!
Development Specialist, Artist and Activist
Personal Website