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

Re: RPM size



On Wed, Jul 17, 2002 at 12:42:14PM -0500, Erich Schroeder wrote:
>   A few meetings back you gave me a nice little script that showed the 
> relative sizes of installed rpms, but I believe that I misplaced it. Could 
> you post it here?

Sure.  It's easy.

    rpm -qa --queryformat '%{NAME}-%{VERSION}-%{RELEASE}\t%{SIZE}\n' \
        | sort -nrk 2

That will print the names of the packages and the sizes, and sort them
from largest to smallest.

Steve
-- 
steve@silug.org           | Southern Illinois Linux Users Group
(618)398-7360             | See web site for meeting details.
Steven Pritchard          | http://www.silug.org/

-
To unsubscribe, send email to majordomo@luci.org with
"unsubscribe luci-discuss" in the body.