2

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.

Mike B
  • 11,570
  • 42
  • 106
  • 165
  • see also http://serverfault.com/questions/62026/how-to-know-from-which-yum-repository-a-package-has-been-installed :) – warren Dec 03 '09 at 12:44

2 Answers2

5

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
cagenut
  • 4,808
  • 2
  • 23
  • 27
1

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

warren
  • 17,829
  • 23
  • 82
  • 134
  • Thanks! I should clarify - I have most repositories disabled... will this still search through them? – Mike B Dec 02 '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 03 '09 at 02:00