Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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: centos.mirrors.tds.net
 * base: mirror.ubiquityservers.com
 * extras: mirrors.serveraxis.net
 * updates: pubmirrors.reflected.net
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
Finished
Setting up Install Process
No package git available.
Nothing to do
root@host [~]#
share|improve this question
1  

2 Answers 2

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
1  
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

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

http://fedoraproject.org/wiki/EPEL/FAQ#How_can_I_install_the_packages_from_the_EPEL_software_repository.3F

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

Your Answer

 
discard

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.