[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: RPM size
Steve wrote:
> 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.
I prefer putting the size first, and sorting normally. The numbers get
formatted to a uniform width, so the package names line up prettier too.
rpm -qa --queryformat '%{SIZE}\t%{NAME}-%{VERSION}-%{RELEASE}\n' | sort -n
This means you don't have to scroll back to get what you're looking for,
namely, the largest packages.
Mike808/
--
() Join the ASCII ribbon campaign against HTML email and Microsoft-specific
/\ attachments. If I wanted to read HTML, I would have visited your website!
Support open standards.
-
To unsubscribe, send email to majordomo@luci.org with
"unsubscribe luci-discuss" in the body.
- References:
- RPM size
- From: Erich Schroeder <erich@museum.state.il.us>
- Re: RPM size
- From: Steven Pritchard <steve@silug.org>