yum provides help

Is there a reason why yum provide can't find libquazip? I did this.

yum whatprovides */libquazip

A quick google search told me it was in quazip and libquazip.

RPM resource libquazip.so.1

Since this isn't obvious and it took me a long long time to figure this out I thought I would post the solution.

yum provides \*libquazip*
yum provides \*libquazip\*

The problem with this is that it assumes you know the exact name of the file. In my case I didn't know the exact file name.

yum whatprovides */libquazip

Here is what it looks right when run with the extra wildcard. The file was actually called libquazip.so.1.0 and libquazip.so.1.0, libquazip.so.1, and libquazip.so.1.0.0

$ yum provides \*libquazip\*
Loaded plugins: langpacks, presto, refresh-packagekit, versionlock
quazip-0.3-3.fc15.i686 : Qt/C++ wrapper for the minizip library
Repo        : fedora
Matched from:
Filename    : /usr/lib/libquazip.so.1.0
Other       : libquazip.so.1
Filename    : /usr/lib/libquazip.so.1
Filename    : /usr/lib/libquazip.so.1.0.0



quazip-devel-0.3-3.fc15.i686 : Development files for quazip
Repo        : fedora
Matched from:
Filename    : /usr/lib/libquazip.so



quazip-0.3-3.fc15.i686 : Qt/C++ wrapper for the minizip library
Repo        : installed
Matched from:
Filename    : /usr/lib/libquazip.so.1.0
Other       : libquazip.so.1
Filename    : /usr/lib/libquazip.so.1
Filename    : /usr/lib/libquazip.so.1.0.0

$ yum provides \*libquazip*
Loaded plugins: langpacks, presto, refresh-packagekit, versionlock
quazip-0.3-3.fc15.i686 : Qt/C++ wrapper for the minizip library
Repo        : fedora
Matched from:
Filename    : /usr/lib/libquazip.so.1.0
Other       : libquazip.so.1
Filename    : /usr/lib/libquazip.so.1
Filename    : /usr/lib/libquazip.so.1.0.0



quazip-devel-0.3-3.fc15.i686 : Development files for quazip
Repo        : fedora
Matched from:
Filename    : /usr/lib/libquazip.so



quazip-0.3-3.fc15.i686 : Qt/C++ wrapper for the minizip library
Repo        : installed
Matched from:
Filename    : /usr/lib/libquazip.so.1.0
Other       : libquazip.so.1
Filename    : /usr/lib/libquazip.so.1
Filename    : /usr/lib/libquazip.so.1.0.0