{"id":548,"date":"2012-07-20T01:12:14","date_gmt":"2012-07-20T01:12:14","guid":{"rendered":"http:\/\/www.omniweb.com\/wordpress\/?p=548"},"modified":"2012-10-21T04:00:38","modified_gmt":"2012-10-21T04:00:38","slug":"install-git-on-centos","status":"publish","type":"post","link":"https:\/\/www.omniweb.com\/wordpress\/?p=548","title":{"rendered":"Install git on CentOS"},"content":{"rendered":"<p>I wanted to put git on one of my CentOS 5.5 servers.  Following <a href=\"http:\/\/git-scm.com\/download\/linux\">the links to download<\/a> the source led to a web page advising to install with yum.  But when I tried,<br \/>\n<code><br \/>\n# yum install git<br \/>\nLoaded plugins: fastestmirror<br \/>\nLoading mirror speeds from cached hostfile<br \/>\n * base: mirrors.usc.edu<br \/>\n * extras: mirrors.usc.edu<br \/>\n * updates: mirrors.usc.edu<br \/>\nSetting up Install Process<br \/>\nNo package git available.<br \/>\nNothing to do<br \/>\n<\/code><br \/>\nfrustrating!  <a href=\"http:\/\/stackoverflow.com\/questions\/3779274\/how-can-git-be-installed-on-centos-5-5\">Here&#8217;s the solution<\/a>, add the webtatic repository first:<br \/>\n# Add the repository<br \/>\n<code>rpm -Uvh http:\/\/repo.webtatic.com\/yum\/centos\/5\/latest.rpm<\/code><\/p>\n<p># Install the latest version of git<br \/>\n<code>yum install --enablerepo=webtatic git-all<\/code><\/p>\n<p> a lot of dependencies were installed and updated.  I didn&#8217;t need the workaround mentioned, but in case someone else might:<br \/>\nTo work around Missing Dependency: perl(Git) errors:<br \/>\n<code>yum install --enablerepo=webtatic --disableexcludes=main  git-all<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I wanted to put git on one of my CentOS 5.5 servers. Following the links to download the source led to a web page advising to install with yum. But when I tried, # yum install git Loaded plugins: fastestmirror &hellip; <a href=\"https:\/\/www.omniweb.com\/wordpress\/?p=548\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/548"}],"collection":[{"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=548"}],"version-history":[{"count":5,"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/548\/revisions"}],"predecessor-version":[{"id":791,"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/548\/revisions\/791"}],"wp:attachment":[{"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=548"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=548"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=548"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}