How to install git using yum
Hello, I'm trying to install git on my system (CentOS 5) and i've tried a variety of different things. I tried
yum install git but that doesn't do anything, it just returns the following message: Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * addons: linux.mirrors.es.net * base: mirrors.xmission.com * extras: mirrors.cat.pdx.edu * updates: mirrors.versaweb.com Setting up Install Process No package git available. Nothing to do I tried downloading an RPM (git-all-1.7.3.2-1.fc11.i386.rpm) online at http://rpm.pbone.net but when I try to install from this RPM i get a list of unresolved dependencies. yum localinstall git-all-1.7.3.2-1.fc11.i386.rpm Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * addons: linux.mirrors.es.net * base: mirrors.cat.pdx.edu * extras: mirror.singleedge.com * updates: mirrors.versaweb.com Setting up Install Process Examining git-all-1.7.3.2-1.fc11.i386.rpm: git-all-1.7.3.2-1.fc11.i386 Marking git-all-1.7.3.2-1.fc11.i386.rpm to be installed Resolving Dependencies --> Running transaction check ---> Package git-all.i386 0:1.7.3.2-1.fc11 set to be updated --> Processing Dependency: git = 1.7.3.2-1.fc11 for package: git-all --> Processing Dependency: git-svn = 1.7.3.2-1.fc11 for package: git-all --> Processing Dependency: git-cvs = 1.7.3.2-1.fc11 for package: git-all --> Processing Dependency: git-arch = 1.7.3.2-1.fc11 for package: git-all --> Processing Dependency: git-email = 1.7.3.2-1.fc11 for package: git-all --> Processing Dependency: gitk = 1.7.3.2-1.fc11 for package: git-all --> Processing Dependency: gitweb = 1.7.3.2-1.fc11 for package: git-all --> Processing Dependency: git-gui = 1.7.3.2-1.fc11 for package: git-all --> Finished Dependency Resolution git-all-1.7.3.2-1.fc11.i386 from /git-all-1.7.3.2-1.fc11.i386 has depsolving problems --> Missing Dependency: git-email = 1.7.3.2-1.fc11 is needed by package git-all-1.7.3.2-1.fc11.i386 (/git-all-1.7.3.2-1.fc11.i386) git-all-1.7.3.2-1.fc11.i386 from /git-all-1.7.3.2-1.fc11.i386 has depsolving problems --> Missing Dependency: git-gui = 1.7.3.2-1.fc11 is needed by package git-all-1.7.3.2-1.fc11.i386 (/git-all-1.7.3.2-1.fc11.i386) git-all-1.7.3.2-1.fc11.i386 from /git-all-1.7.3.2-1.fc11.i386 has depsolving problems --> Missing Dependency: gitk = 1.7.3.2-1.fc11 is needed by package git-all-1.7.3.2-1.fc11.i386 (/git-all-1.7.3.2-1.fc11.i386) git-all-1.7.3.2-1.fc11.i386 from /git-all-1.7.3.2-1.fc11.i386 has depsolving problems --> Missing Dependency: git-svn = 1.7.3.2-1.fc11 is needed by package git-all-1.7.3.2-1.fc11.i386 (/git-all-1.7.3.2-1.fc11.i386) git-all-1.7.3.2-1.fc11.i386 from /git-all-1.7.3.2-1.fc11.i386 has depsolving problems --> Missing Dependency: gitweb = 1.7.3.2-1.fc11 is needed by package git-all-1.7.3.2-1.fc11.i386 (/git-all-1.7.3.2-1.fc11.i386) git-all-1.7.3.2-1.fc11.i386 from /git-all-1.7.3.2-1.fc11.i386 has depsolving problems --> Missing Dependency: git = 1.7.3.2-1.fc11 is needed by package git-all-1.7.3.2-1.fc11.i386 (/git-all-1.7.3.2-1.fc11.i386) git-all-1.7.3.2-1.fc11.i386 from /git-all-1.7.3.2-1.fc11.i386 has depsolving problems --> Missing Dependency: git-arch = 1.7.3.2-1.fc11 is needed by package git-all-1.7.3.2-1.fc11.i386 (/git-all-1.7.3.2-1.fc11.i386) git-all-1.7.3.2-1.fc11.i386 from /git-all-1.7.3.2-1.fc11.i386 has depsolving problems --> Missing Dependency: git-cvs = 1.7.3.2-1.fc11 is needed by package git-all-1.7.3.2-1.fc11.i386 (/git-all-1.7.3.2-1.fc11.i386) Error: Missing Dependency: git-gui = 1.7.3.2-1.fc11 is needed by package git-all-1.7.3.2-1.fc11.i386 (/git-all-1.7.3.2-1.fc11.i386) Error: Missing Dependency: gitk = 1.7.3.2-1.fc11 is needed by package git-all-1.7.3.2-1.fc11.i386 (/git-all-1.7.3.2-1.fc11.i386) Error: Missing Dependency: git-cvs = 1.7.3.2-1.fc11 is needed by package git-all-1.7.3.2-1.fc11.i386 (/git-all-1.7.3.2-1.fc11.i386) Error: Missing Dependency: git-svn = 1.7.3.2-1.fc11 is needed by package git-all-1.7.3.2-1.fc11.i386 (/git-all-1.7.3.2-1.fc11.i386) Error: Missing Dependency: gitweb = 1.7.3.2-1.fc11 is needed by package git-all-1.7.3.2-1.fc11.i386 (/git-all-1.7.3.2-1.fc11.i386) Error: Missing Dependency: git-email = 1.7.3.2-1.fc11 is needed by package git-all-1.7.3.2-1.fc11.i386 (/git-all-1.7.3.2-1.fc11.i386) Error: Missing Dependency: git = 1.7.3.2-1.fc11 is needed by package git-all-1.7.3.2-1.fc11.i386 (/git-all-1.7.3.2-1.fc11.i386) Error: Missing Dependency: git-arch = 1.7.3.2-1.fc11 is needed by package git-all-1.7.3.2-1.fc11.i386 (/git-all-1.7.3.2-1.fc11.i386) 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 I thought Yum was supposed to automatically resolve those issues? Do i need to set up another repository to make this work?? Thanks for any assistance, I'm pretty new with Yum so if anything i mentioned above doesn't make sense just let me know and i'll try to clarify. Thanks! |
The package git is in the EPEL repo https://fedoraproject.org/wiki/EPEL
( EPEL : 5000 packages.) After installing the 'epel.repo', you can do # yum install git Random Fedora packages cannot be used in CentOS. .. |
your telling me git is not on a default install ???????
|
@Drakeo
No default git. The "Base.repo" for CentOS5 / (RHEL5) / SL5 : Only 2535 packages . It is a server OS : Limited selections. .. |
yum search git and try installing the results, if not try to change the yum sources
|
|
installing rep
knudfl, Thanks for the reply. Sorry but I'm pretty new to yum, would you be able to how I'd install the 'epel.repo'? Also, how would i even know to look there in the first place?
Thanks, |
install the appropriate epel-release package on this page and it'll take care of it all http://fedoraproject.org/wiki/EPEL
Why would you know? Well here you are now, finding out... |
Thanks
Thanks for the great info guys! I was up able to successfully get git installed. Thanks again!
|
All times are GMT -5. The time now is 01:15 PM. |