Author Topic: yum whatprovides. Does it work?  (Read 2750 times)

Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4760
  • Karma: +41/-1
  • Your Friend Wil Declares...
    • View Profile
    • Martin's Personal Blog
yum whatprovides. Does it work?
« on: November 16, 2023, 05:24:11 pm »
Hello

I guess that "yum whatprovides" is to find which rpm package provides a specific file.

For example if I try:
- yum whatprovides mmioos2*
I get:
- No Matches found
While the file  "mmioos2.h" is on the "os2tk45-headers" package.

Is it only supposed to be searching the local drive? or it also search for file in the RPM servers?
Am I missing something on the call of the command? caps?

Regards
Martin Iturbide
OS2World NewsMaster
... just share the dream.

TeLLie

  • Full Member
  • ***
  • Posts: 236
  • Karma: +12/-0
    • View Profile
Re: yum whatprovides. Does it work?
« Reply #1 on: November 16, 2023, 07:24:01 pm »
Hi Martin,
I use yum whatprovides */mmioos2
or
yum --noplugins -C provides */mmioos2*

Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4760
  • Karma: +41/-1
  • Your Friend Wil Declares...
    • View Profile
    • Martin's Personal Blog
Re: yum whatprovides. Does it work?
« Reply #2 on: November 17, 2023, 12:58:51 am »
Thanks Tellie.

That */ was the trick that I was missing.

Regards
Martin Iturbide
OS2World NewsMaster
... just share the dream.