LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-28-2011, 12:20 PM   #1
miggety
LQ Newbie
 
Registered: Jun 2011
Posts: 6

Rep: Reputation: Disabled
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!
 
Old 08-28-2011, 12:27 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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.

..
 
1 members found this post helpful.
Old 08-28-2011, 12:31 PM   #3
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 3,716
Blog Entries: 3

Rep: Reputation: 483Reputation: 483Reputation: 483Reputation: 483Reputation: 483
your telling me git is not on a default install ???????
 
0 members found this post helpful.
Old 08-28-2011, 12:38 PM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
@Drakeo

No default git. The "Base.repo" for CentOS5 / (RHEL5) / SL5 :
Only 2535 packages .

It is a server OS : Limited selections.

..

Last edited by knudfl; 08-28-2011 at 12:41 PM.
 
Old 08-28-2011, 02:04 PM   #5
Zatarra
LQ Newbie
 
Registered: Aug 2011
Posts: 8

Rep: Reputation: 0
yum search git and try installing the results, if not try to change the yum sources
 
Old 08-28-2011, 02:22 PM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
http://pkgs.repoforge.org/git/
 
Old 08-28-2011, 02:57 PM   #7
miggety
LQ Newbie
 
Registered: Jun 2011
Posts: 6

Original Poster
Rep: Reputation: Disabled
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,
 
Old 08-28-2011, 03:47 PM   #8
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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...
 
Old 08-28-2011, 05:39 PM   #9
miggety
LQ Newbie
 
Registered: Jun 2011
Posts: 6

Original Poster
Rep: Reputation: Disabled
Thanks

Thanks for the great info guys! I was up able to successfully get git installed. Thanks again!
 
  


Reply

Tags
git, installation, yum



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] git push in a git-init without --bare option? xeon123 Linux - Newbie 1 06-27-2011 03:44 AM
[SOLVED] Can't install Git repo (I don't git git ) Nemus Linux - Software 3 05-20-2011 02:09 PM
yum install flash ... yum: command not found ... which yum ... /usr/bin/yum tg0000 Fedora 8 04-13-2011 11:25 AM
SBo-git - slackbuilds.org on git (with patches for current) ponce Slackware 47 03-12-2011 05:12 AM
inconsistency issue of git-clone ***/git/mesa/drm with the existing kernel source centguy Linux - Desktop 2 10-08-2008 10:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:30 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration