Search for a package containing a certain file

Assumed you want to find the package that contains the shared object, e.g. because a binary is dynamically linked against it, and ldd tells you that the shared library requirements are not met. On Fedora (or any yum-type os) you’d run

$ yum whatprovides */

and yum would tell you, that mesa-libGLU comes with /usr/lib64/ which could fulfill your need (could because you could also be missing the i686 version of the package, depending on your binary).

The Ubuntu way of achieving the same thing:

$ apt-file search

And of course the corresponding package would be libglu1-mesa on any recent Ubuntu os.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.