Red Hat Bugzilla – Bug 228944
yum whatprovides bin/yacc does not work
Last modified: 2014-01-21 17:57:21 EST
Description of problem:
When I search for a package containing bin/yacc, yum does only show results,
when this package is alread in the filesystem.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. yum whatprovides bin/yacc
2. yum install byacc
3. yum whatprovides bin/yacc
Step 1 does not provide any results, only after step 2 yum find bin/yacc
yum should find bin/yacc before it is already in the filesystem
Is yum whatprovides somehow broken in many ways? This is the second bug in short
time I stumbled upon.
bin/yacc doesn't exist - /usr/bin/yacc does
it finds it in the second case b/c the search for files on the filesystem is
different than the one in repositories. It should probably be fixed but the case
you site is a bit obscure.
(In reply to comment #1)
> bin/yacc doesn't exist - /usr/bin/yacc does
> it finds it in the second case b/c the search for files on the filesystem is
> different than the one in repositories. It should probably be fixed but the case
> you site is a bit obscure.
Ok, yum whatprovides \*bin/yacc works as expected, but when searching with "yum
whatprovides yacc" it matches for example
So when I do not use a "/" in my whatprovides query, it seems to search for
\*SEARCHSTRING\* but when I do it searches for an exact match?
I do not understand, why this is obscure, is there any better way to search for
packages that contain a special binary? Searching for yacc prints a lot of
results and a grep for bin would not show the package name.
With yum-3.2.1-1.fc7 "yum whatprovides bin/yacc" does mot return any results and
"yum whatprovides \*bin/yacc" demands filelists.sqlite.bz2. Is there a new way
to perform the searches I described?
yes - yum provides does not implicitly do a wildcarded search. you have to ask
This is behavior that's changed in yum 3.2.X b/c it makes the searches
Is there something wrong with it requiring filelists to do a wildcard search?
(In reply to comment #4)
> This is behavior that's changed in yum 3.2.X b/c it makes the searches
> waaaaaaaaaaaaay faster.
It feels a lot faster, too. :-)
> Is there something wrong with it requiring filelists to do a wildcard search?
Imho, at least when I provide "-C", it should only search trough the available
data and print a warning that some more files are needed to do an exhaustive search.
It is a bit strage from a my point of view as a user that
yum -C whatprovides bash
yum -C whatprovides bas?