Rajesh Fowkar forced the electrons to say:
> Is there any way to get rpm packages listing in order of their sizes in
> ascending order with sizes mentioned alongside ? This is to find out which
> rpm packages have occupied more space on my Hard Disk.

Sometime ago, I too needed the very same thing - and on SuSE :-)

What I did was:

rpm -qa --queryformat '%{SIZE}\t%{NAME}\n' | sort -rn > /tmp/rpmlist

to get a descending order sorted list of all RPMs and their sizes. Removing
the unwanted 600+ MB useless game demos from SuSE then was trivial.

Binand

PS: For ascending order, pipe through sort -n.


----------------------------------------------
The mailing list archives are available at
http://lists.linux-india.org/cgi-bin/wilma/LIH

Reply via email to