Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How can I install git on CENTOS 5.5 machine? I tried to install it from yum but got following msg.

root@host [~]# sudo yum install git
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * addons:
 * base:
 * extras:
 * updates:
addons                                                   |  951 B     00:00
base                                                     | 2.1 kB     00:00
extras                                                   | 2.1 kB     00:00
updates                                                  | 1.9 kB     00:00
Excluding Packages in global exclude list
Setting up Install Process
No package git available.
Nothing to do
root@host [~]#
share|improve this question

Add the EPEL repository and then run 'yum install git' again

share|improve this answer
I added epcl respo and tried to install git, but I got errors regarding git Dependencies and unable to install it. – Prakash Sep 23 '10 at 19:26
What dependencies was it not able to find? Post your output here and I'll try to help you get it resolved. – alanthing Sep 25 '10 at 18:05
Is this still the correct way to do this - on a CentOS 5.7 box, tried the RHEL5 option but getting missing dependancies, like perl-Git? – Chris Kimpton Nov 20 '11 at 19:51

Try download this rpm. Or enable "testing" tag in /etc/yum.repos.d/CentOS-Base.repo

share|improve this answer
actually I am learning linux and new with it so isn't there any easy solution? – Prakash Sep 24 '10 at 10:13
Trying to resolve problems like these are also part of learning. So dont think this situation as a hinderance, rather take this as an opportunity to learn. – yasouser Feb 9 '11 at 3:17

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.