Saturday, January 30, 2010

RPM: Want to know the overall RPMs in your Linux Box ? Try Your Hands on !!

I was searching for a command which could provide me the overall RPMs in my CentOS 5.4 box.I did tried it several times but usually forget to collect it.
So this command is for all you guys (and me, of course) who may want to know the size of all the installed packages and sort them. Here we go:

Code:

$ rpm -qa --qf '%11{SIZE} %{NAME}\n' | sort -k1n

There you see..Sea of RPMs.

Happy LinuXing !!!

No comments:

Post a Comment