centos 7 update git to version 2 code example Example: upgrade git on centos 7 sudo yum install epel-release sudo yum remove git sudo yum install git