CentOS: Installing Git

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

Tim Clark

Experienced Business Owner, Chief Information Officer, Vice President, Chief Software Architect, Application Architect, Project Manager, Software Developer, Senior Web Developer, Graphic Designer & 3D Modeler, University Instructor, University Program Chair, Academic Director. Specialties: Ruby, Ruby on Rails, JavaScript, JQuery, AJAX, Node.js, React.js, Angular.js, MySQL, PostgreSQL, MongoDB, SQL Server, Responsive Design, HTML5, XHTML, CSS3, C#, ASP.net, Project Management, System Design/Architecture, Web Design, Web Development, Adobe CS6 (Photoshop, Illustrator)

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s