Centos 6 2 Yum Install Git Centos

Active1 year, 8 months ago

I have installed chef workstation on centOS 6 using vagrant. My current git version here is 1.7.1

In the git config --list, it is not accepting push.default = simple. How can I update this git version to the latest one through terminal.

  • In this article, we will cover how to install git on a CentOS 6.4 server using yum, the CentOS package manager. We will then show how to install git from source in case you would like to benefit from the latest improvements.
  • So you want to setup a GIT Repository for your developers on RHEL 6/CentOS 6, but notice Red Hat Enterprise Linux 6 contains 1.7.1 in the repositories, which is well.

Centos 6.2 Yum Install Git Centos 7

Git is a very useful version control tool in the today’s software development industry. I use it all the time so thought to write a useful tutorial for unixmen readers on how to install git on CentOS 7. If you have ever used sites like Github or pushed code on Bitbucket to show it to your friends. I used the usual: yum install git It did not install the latest version of git on my CentOS 6. How can I update to the latest version of git for CentOS 6? The solution can be applicable to newer.

Yum Install Gcc

Any help is appreciated!

user34720
YashYash

2 Answers

You could enable repoforge repository and install a newer version of it. But, as you can see, this repository is dead:

RepoForge might be outdated. We have no updates since very long time.

Best option is to compile from source. Install the dependencies:

Remove your git software installed through package manager:

Centos

Download the version you want from here: https://www.kernel.org/pub/software/scm/git/

user34720

Updated GIT version to 2.4.4 on Centos 6.6 Vagrant VM 'minimal/centos6'

See https://serverfault.com/questions/448814/yum-doesnt-install-latest-version-of-git-on-centos6/604124#604124

Dragon FlyDragon Fly

Centos 6 2 Yum Install Git Centos Version

Not the answer you're looking for? Browse other questions tagged centosgitvagrant or ask your own question.