How to find what RPM provides what files

Have you ever tried to find where a specific file came from?  If it was installed from an RPM, there is an easy way.  Just use the following command.

rpm -q --whatprovides /path/to/file

3 Responses

  1. jack Says:

    the correct command is
    rpm -q –whatprovides /path/to/file

    (2 hypens before whatprovides)

  2. jack Says:

    ah, the html is stripping the second hypen. lets try

    rpm -q -\-whatprovides /path/to/file

  3. mshields Says:

    Looks like Wordpress was formatting it strange. I’ve fixed it so it appears correct.

    thanks

Leave a Comment

Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.