title: Installing Git on CentOS failed?
body: <p>I am new to this, trying to install git on my VPS running on CentOS. </p>
  
  <p>I tried <code>yum install git-core</code> and <code>yum install git</code> and both resulted in <code>No package git-core available.
  Nothing to do</code>. I guess <code>git</code> in not in the CentOs repos.</p>
  
  <p>I tried another method here: <a href="http://www.lunix.com.au/blog/install-gitosis-on-centos5/" rel="nofollow">http://www.lunix.com.au/blog/install-gitosis-on-centos5/</a>.</p>
  
  <p>Running <code>rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-3.noarch.rpm</code> gives me the message:</p>
  
  <p><code>error: skipping http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-3.noarch.rpm - transfer failed - Unknown or unexpected error
  warning: u 0x9079f18 ctrl 0x907ad30 nrefs != 0 (download.fedora.redhat.com http)</code></p>
  
  <p>Is there another way to install <code>git</code>?</p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>I get the following error after adding in the correct repo:</p>
  
  <pre><code>Setting up Install Process
  Resolving Dependencies
  --&gt; Running transaction check
  ---&gt; Package git.i386 0:1.7.4.1-1.el5 set to be updated
  --&gt; Processing Dependency: perl-Git = 1.7.4.1-1.el5 for package: git
  --&gt; Processing Dependency: perl(Error) for package: git
  --&gt; Processing Dependency: perl(Git) for package: git
  --&gt; Finished Dependency Resolution
  git-1.7.4.1-1.el5.i386 from epel has depsolving problems
    --&gt; Missing Dependency: perl(Git) is needed by package git-1.7.4.1-1.el5.i386 (epel)
  git-1.7.4.1-1.el5.i386 from epel has depsolving problems
    --&gt; Missing Dependency: perl-Git = 1.7.4.1-1.el5 is needed by package git-1.7.4.1-1.el5.i386 (epel)
  git-1.7.4.1-1.el5.i386 from epel has depsolving problems
    --&gt; Missing Dependency: perl(Error) is needed by package git-1.7.4.1-1.el5.i386 (epel)
  Error: Missing Dependency: perl-Git = 1.7.4.1-1.el5 is needed by package git-1.7.4.1-1.el5.i386 (epel)
  Error: Missing Dependency: perl(Git) is needed by package git-1.7.4.1-1.el5.i386 (epel)
  Error: Missing Dependency: perl(Error) is needed by package git-1.7.4.1-1.el5.i386 (epel)
   You could try using --skip-broken to work around the problem
   You could try running: package-cleanup --problems
                          package-cleanup --dupes
                          rpm -Va --nofiles --nodigest
  The program package-cleanup is found in the yum-utils package.
  </code></pre>
  
  <p>I think this may be due to cPanel, so I did <code>yum --disableexcludes=main install git</code>. Then it resolved the dependencies, I let it download the git package, but then it fails:</p>
  
  <pre><code>warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID 217521f6
  GPG key retrieval failed: [Errno 5] OSError: [Errno 2] No such file or directory:             
  /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL
  </code></pre>