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

I'd like to know which Centos repositories various packages are available at. Is there a directory somewhere? I tried googling it and didn't find anything.

share|improve this question
    
see also serverfault.com/questions/62026/… :) –  warren Dec 3 '09 at 12:44
add comment

2 Answers 2

up vote 4 down vote accepted

If you have the repositories configured on your server "yum list" will show you which packages come from which repositories (or are already installed) in the third column.

[root@cobbler ~]# yum list | egrep 'foo|cobbler'
cobbler.x86_64                             1.6.6-1.el5                 installed
foomatic.x86_64                            3.0.2-38.3.el5              base
revisor-cobbler.noarch                     2.0.5.2-3.el5               epel
share|improve this answer
    
Thanks! I should clarify - I have most repositories disabled... will this still search through them? –  Mike B Dec 2 '09 at 23:49
1  
No, but you can pass the "--enablerepo=*" argument and it will. –  cagenut Dec 3 '09 at 19:07
add comment

Doing a yum search on the package name should show the repository from which it would install.

share|improve this answer
    
Thanks! I should clarify - I have most repositories disabled... will this still search through them? –  Mike B Dec 2 '09 at 23:47
    
no - if they're disabled, yum is being told NOT to search them. Therefore, if you can't find the package you want, you need to enable other repositories. –  warren Dec 3 '09 at 2:00
add comment

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.