[Rpm-maint] Feature request: Improved speed for 'rpm -qa'

Panu Matilainen pmatilai at laiskiainen.org
Wed Dec 20 06:21:47 UTC 2006


On Wed, 20 Dec 2006, Axel Liljencrantz wrote:
>
> Going beyond that, it would also be nice if one could get the summary
> field of each package as well. Fish supports the showing of a
> description for every completion. If you are completing a command name
> or a manual page for the man command, fish will show you the whatis
> data for the command/manual page as the description, if you are
> completing a username, the full name is shown, etc.. But I can see how
> adding support for retrieving summary data would make things slow, so
> I guess that is 'and a pony' territory. But in a perfect world, I
> would like something like:
>
> # rpm --query --prefix=als -- fields=name,summary
> alsa-lib,The Advanced Linux Sound Architecture (ALSA) library
> alsa-utils,Advanced Linux Sound Architecture (ALSA) utilities

You can already do this, only the syntax is a bit more involved:

[pmatilai at localhost ~]$ rpm -qa --qf '%{name} %{summary}\n' 'als*'
alsa-lib-devel Static libraries and header files from the ALSA library.
alsa-lib The Advanced Linux Sound Architecture (ALSA) library.
alsa-utils Advanced Linux Sound Architecture (ALSA) utilities

 	- Panu -



More information about the Rpm-maint mailing list