You might notice that many Virtual Private Servers (VPS) are running the CentOS linux distribution. In its standard source repositories it does not have Git which we Ruby developers tend to use as our source code repositories. Due to this when you run the command ‘yum install git’ you get a message back stating it does not exist.
If you have googled for a solution you will run into a ton of really complicated solutions which require in-depth linux package management knowledge. For those of us who really aren’t interested in becoming linux server administrators its way too complicated and takes too long to figure out. That being said I like to take the easy route and I found this through all my searching and it worked on my CentOS VPS on Hostingrails.
rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm
yum install git
Published by