Kenneth Porter wrote: > --On Thursday, November 03, 2005 11:19 AM +1100 Ben Stringer > <ben@xxxxxxxxxxx> 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/>
Attachment:
signature.asc
Description: OpenPGP digital signature