--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.)