I had to set up git on a VPS hosted at http://netgonian.com (GoDaddy reseller). What took 3 hours could have been done in about 15 minutes and super easy.
Installing git should be as simple as running yum install git
but unfortunately trying that gave me all sorts of could not find file errors. Below was the final solution.
Here are the steps:
- ssh onto your virtual server
- change over to the root user using the command
su -
- follow the instructions here to create a new centos-base.repo file
- in the same directory where you just created the above file (/etc/yum.repos.d) rename the file CentoOS-Base.repo to CentOS-Base.repox
- now you can run
yum install git
and it will work.
The basic issue was that all the base urls for yum were pointing to some server on the secureserver.net that was missing all the needed files. What we are doing above is pointing the base urls to servers that have the needed files.