Re: rpm "list package names only"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux