rpm "list package names only"

Kenneth Porter shiva at sewingwitch.com
Thu Nov 3 00:34:40 UTC 2005


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




More information about the users mailing list