Bug 147632 - Output of 'yum search' isn't very helpful
Summary: Output of 'yum search' isn't very helpful
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: yum
Version: 3
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jeremy Katz
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2005-02-09 22:52 UTC by Peter Williams
Modified: 2018-09-10 07:04 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2005-02-09 22:58:20 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Peter Williams 2005-02-09 22:52:04 UTC
I think the output from the 'yum search' command could be improved to make it
more helpful. I have two main complaints:

* It's too verbose. Thanks to the package descriptions, very few packages fit on
a screenful of output. I don't think the package descriptions are helpful enough
(or at all) to warrant outputting them.

* I'm a little confused by the way that one package will show up several times
in  one search. I guess this is because if, say, an update for a package has
been issued, it exists in both the 'updates-released' and 'base' repositories,
as well as the virtual 'installed' repository. And if a package has been updated
multiple times, it looks like all versions are displayed. And a package will be
displayed twice if its name and description match.

I think the following changes should be made, at least to the default search mode:

* Only display package name, version, and repository
* If multiple packages with the same name, only display the newest
* Sort output by 'Installed' and 'Available'
* Possibly only match by package name, not description. Try 'yum search kernel',
eg. Maybe make this able to be turned on/off via a command-line switch.

So for instance something like:

$ yum search Omni
[data loading output]

Installed:
       Omni.i386             0.9.2-1.1      updates-released
       Omni-foomatic.i386    0.9.2-1.1      updates-released

Available:
       Omni-debuginfo.i386   0.9.2-1.1      updates-released

As opposed to the mess which that command produces on an FC3 system.

Comment 1 Peter Williams 2005-02-09 22:58:20 UTC
On the other hand, maybe I'm a dumbass and should have read about 'yum list'. My
bad.


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