Bug 228944 - yum whatprovides bin/yacc does not work
yum whatprovides bin/yacc does not work
Status: CLOSED NOTABUG
Product: Fedora
Classification: Fedora
Component: yum (Show other bugs)
6
All Linux
medium Severity medium
: ---
: ---
Assigned To: James Antill
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2007-02-15 20:35 EST by Till Maas
Modified: 2014-01-21 17:57 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2008-01-05 13:18:50 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Till Maas 2007-02-15 20:35:15 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):
3.0.3-1


How reproducible:
always


Steps to Reproduce:

1. yum whatprovides bin/yacc
2. yum install byacc
3. yum whatprovides bin/yacc
  
Actual results:
Step 1 does not provide any results, only after step 2 yum find bin/yacc

Expected results:
yum should find bin/yacc before it is already in the filesystem

Additional info:
Is yum whatprovides somehow broken in many ways? This is the second bug in short
time I stumbled upon.
Comment 1 Seth Vidal 2007-02-15 23:36:44 EST
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.
Comment 2 Till Maas 2007-02-16 03:52:18 EST
(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
"/usr/lib/plt/collects/parser-tools/private-yacc/compiled/lr0.zo".
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.
Comment 3 Till Maas 2007-07-27 05:32:55 EDT
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?
Comment 4 Seth Vidal 2007-07-27 12:41:54 EDT
yes - yum provides does not implicitly do a wildcarded search. you have to ask
for it.

This is behavior that's changed in yum 3.2.X b/c it makes the searches
waaaaaaaaaaaaay faster.

Is there something wrong with it requiring filelists to do a wildcard search?
Comment 5 Till Maas 2007-07-27 13:49:30 EDT
(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
works, but
yum -C whatprovides bas?
does not.

Note You need to log in before you can comment on or make changes to this bug.