Minimal install of FC3

Rodd Clarkson rodd at clarkson.id.au
Mon Oct 18 22:29:58 UTC 2004


On Mon, 2004-10-18 at 11:28 -0500, Satish Balay wrote:
 
> >   3. I'm using "rpm -qa --queryformat %{SIZE}\t\t%{NAME}\n | less" to
> > look for the larger packages. However, it's hard to read the numbers
> > since they're left-justified and I cannot sort on size. Is there any way
> > I can sort on size descending, or put the size figures into a column so
> > I can right-justify them?
> 
> how about just using 'sort -n'?
> 
> rpm -qa --qf '%{SIZE} %{NAME}\n' | sort -nr | less

It's not perfect, but try...

rpm -qa --queryformat %{SIZE}\t\t%{NAME}\n | sed -r -e "s/n([0-9])/\n
\1/g" | sed -r -e "s/([0-9])tt/\\t/" | sort -nr


Rodd
-- 
>From the pain come the dream
>From the dream come the vision
>From the vision come the people
>From the people come the power
>From this power come the change

                         - Peter Gabriel




More information about the fedora-test-list mailing list