• Home
  • Ubuntu 20.04
    • Upgrade Ubuntu
    • Install Java
    • Install Node.js
    • Install Docker
    • Install LAMP Stack
  • Tutorials
    • AWS
    • Shell Scripting
    • Docker
    • Git
    • MongoDB
  • Funny Tools
  • FeedBack
  • Submit Article
  • About Us
TecAdmin
Menu
  • Home
  • Ubuntu 20.04
    • Upgrade Ubuntu
    • Install Java
    • Install Node.js
    • Install Docker
    • Install LAMP Stack
  • Tutorials
    • AWS
    • Shell Scripting
    • Docker
    • Git
    • MongoDB
  • Funny Tools
  • FeedBack
  • Submit Article
  • About Us

How to Upgrade Git version >= 1.7.10 on CentOS 6

Written by Rahul, Updated on May 22, 2013

Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency. Git is easy to learn and has a tiny footprint with lightning fast performance. It outclasses SCM tools like Subversion, CVS, Perforce, and ClearCase with features like cheap local branching, convenient staging areas, and multiple workflows.

This how to guide will help you to upgrade git version on your CentOS/RHEL 6 system.

Step 1: Install rpmforge Repository

Download and install rpmforge repository rpm using following commands.

RHEL/CentOS 6 - 64bit
# rpm -i 'http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm'
# rpm --import http://apt.sw.be/RPM-GPG-KEY.dag.txt

RHEL/CentOS 6 - 32bit
# rpm -i 'http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.i686.rpm'
# rpm --import http://apt.sw.be/RPM-GPG-KEY.dag.txt
Step 2: Edit rpmforge Yum Repository File

Edit your rpmforge repository file and change enabled=1 from 0 in [rpmforge-extras] section.

# vim /etc/yum.repos.d/rpmforge.repo

change the enabled=0 flag to enabled=1 and save it.

Step 3: Upgrade git Version

Upgrade git version on your system using following command and check the upgraded version.

# yum update git

Check git version

# git --version
git version 1.7.12.4
Step 4: Finally disable rpmforge-extras Repo

Edit and disable rpmforge-extras repository in rpmforge.repo and clean the yum data.

# yum clean all

Visit here to get a free Git cheatsheet for quickly learn uses of git. You may also visit below link to learn Git with demo environment using virtual terminal

http://try.github.io/levels/1/challenges/1

Share it!
Share on Facebook
Share on Twitter
Share on LinkedIn
Share on Reddit
Share on Tumblr
Share on Whatsapp
Rahul
Rahul
Connect on Facebook Connect on Twitter

I, Rahul Kumar am the founder and chief editor of TecAdmin.net. I am a Red Hat Certified Engineer (RHCE) and working as an IT professional since 2009..

5 Comments

  1. Avatar Ashwin Reply
    November 20, 2019 at 3:41 am

    For People here is the correct link

    http://ftp.tu-chemnitz.de/pub/linux/dag/redhat/el7/en/x86_64/rpmforge/RPMS/rpmforge-release-0.5.3-1.el7.rf.x86_64.rpm

    this will save some time for few people

  2. Avatar Sudarshan Reply
    September 21, 2016 at 2:10 pm

    Links Did not work for me 🙁

  3. Avatar Valerij Reply
    January 31, 2016 at 10:01 pm

    Thanks a lot, it helped me

  4. Avatar Alex Reply
    December 10, 2014 at 10:41 am

    That’s exactly what I needed, thank you! @Andy Madge: Thank you for the shortcut too.

  5. Avatar Andy Madge Reply
    June 27, 2014 at 5:37 pm

    You can actually do steps 2, 3 and 4 in s single line:

    yum update git –enablerepo=rpmforge-extras

Leave a Reply Cancel reply

Popular Posts

  • How To Install Python 3.9 on Debian 10
  • Download Ubuntu 20.04 LTS – DVD ISO Images
  • Linux Run Commands As Another User
  • How to Check PHP Version (Apache/Nginx/CLI)
  • How To Install and Configure GitLab on Ubuntu 20.04
  • How to Install PyCharm on Ubuntu 20.04
  • How to Check Ubuntu Version with Command or Script
  • How to Set all directories to 755 And all files to 644
© 2013-2021 Tecadmin.net. All Rights Reserved | Terms  | Privacy Policy