rpm "list package names only"

Morgan Read mstuff at pl.net
Thu Nov 3 07:24:24 UTC 2005


Kenneth Porter wrote:
> --On Thursday, November 03, 2005 11:19 AM +1100 Ben Stringer
> <ben at burbong.com> wrote:
> 
>> It's documented in the manpage - use the "--qf" option to format the
>> results as you want them.
>>
>> Eg.
>>
>>   rpm -qa --qf "%{NAME}\n"
> 
> 
> You'll want to sort the result, as the names are reported in
> seemingly-random order as they're pulled from the database.
> 
> Here's one I used recently:
> 
> rpm -qa --queryformat='%{SIZE} %{NAME}\n' | sort -n
> 
> The largest packages will group at the end, letting you know what's
> using most of your disk space. (For me, it was the kernel-source RPM on
> FC2 that was chewing up 250 MB.)
> 
Thanks, I knew it would be "simple" - I've spent forever trying to workout
that queryformat stuff - and the manpage referred to...
Regards,
M
-- 
Morgan Read
NEW ZEALAND
<mailto:mstuffATplDOTnet>

get a life; GET FIREFOX!
<www.getfirefox.com>
WHY ME?  Read on:
<http://www.theregister.co.uk/2004/06/28/cert_ditch_explorer/>
<http://www.theregister.co.uk/2004/09/13/german_ie_jitters/>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 251 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20051103/fd54c934/attachment-0001.sig>


More information about the fedora-list mailing list