Yum doesn't install latest version of Git on Centos6

It's super easy to download the source and compile it yourself, I even found RPMForge method kind of cumbersome.

Download Git 2.11 source and

    make configure 
    ./configure --prefix=/usr
    make all
    sudo make install install-doc install-html

I needed to install a couple of dependencies before make fully succeeds.

sudo yum install libcurl-devel zlib-devel asciidoc xmlto

Here's what worked for me:

  1. Enabled RPMForge
  2. yum install yum-plugin-priorities # install the yum priorities plugin via
  3. Enabled the RPM Forge Extras repo by editing /etc/yum.repos.d/rpmforge.repo and changed enabled to 1 in the rpmforge-extras section. I also bumped up the priority of both rpmforge repos to 1 by adding priority = 1 to both sections.
  4. yum remove git
  5. yum clean all && yum update && yum install git