Facebook Twitter Instagram
    TecAdmin
    • Home
    • Ubuntu 20.04
      • Upgrade Ubuntu
      • Install Java
      • Install Node.js
      • Install Docker
      • Install LAMP Stack
    • Tutorials
      • AWS
      • Shell Scripting
      • Docker
      • Git
      • MongoDB
    • FeedBack
    • Submit Article
    • About Us
    Facebook Twitter Instagram
    TecAdmin
    Home»Linux Tutorials»How to Upgrade Git version >= 1.7.10 on CentOS 6

    How to Upgrade Git version >= 1.7.10 on CentOS 6

    RahulBy RahulMay 22, 20132 Mins Read

    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. Facebook Twitter Pinterest LinkedIn Tumblr Email WhatsApp
    Previous ArticleHow to Setup Master Slave DNS Server on CentOS 6 and RHEL
    Next Article HAProxy Load Balancing Setup Based On URL

    Related Posts

    (Resolved) userauth_pubkey: key type ssh-rsa not in PubkeyAcceptedAlgorithms

    Updated:May 10, 20221 Min Read

    How to Install Apache ActiveMQ on Ubuntu 22.04

    3 Mins Read

    How To Enable SSH Server on Ubuntu 22.04

    Updated:April 22, 20222 Mins Read

    How To Install LAMP Stack on Ubuntu 22.04 LTS

    Updated:April 20, 20225 Mins Read

    10 Best Linux Video Players in 2022

    Updated:February 18, 20226 Mins Read

    How to Switch Python Version in Ubuntu & Debian

    Updated:April 22, 20223 Mins Read

    5 Comments

    1. Ashwin on November 20, 2019 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

      Reply
    2. Sudarshan on September 21, 2016 2:10 pm

      Links Did not work for me 🙁

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

      Thanks a lot, it helped me

      Reply
    4. Alex on December 10, 2014 10:41 am

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

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

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

      yum update git –enablerepo=rpmforge-extras

      Reply

    Leave A Reply Cancel Reply

    Recent Posts
    • How to Enable / disable Firewall in Windows
    • How to Install JAVA on Ubuntu 22.04
    • Switching Display Manager in Ubuntu – GDM, LightDM & SDDM
    • Changing the Login Screen Background in Ubuntu 22.04 & 20.04
    • How To Install PHP (8.1, 7.4 or 5.6) on Ubuntu 22.04
    Facebook Twitter Instagram Pinterest
    © 2022 Tecadmin.net. All Rights Reserved | Terms  | Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.