//View Tip #828
» List non-system users
» Sort the lines of a file by length
» Get an ordered list of subdirectory sizes
» Randomize lines in a file
Similar Tips
» Matching files and packages in Debian/Ubuntu» List non-system users
» Sort the lines of a file by length
» Get an ordered list of subdirectory sizes
» Randomize lines in a file
Latest tips by RSS
Click here to subscribe
Follow Shell-Fu on Twitter
Click here to follow
Follow Shell-Fu on identi.ca
Click here to follow
The command below will give a list of the packages installed on a debian system sorted from smallest to largest (the order can be reveresed by adding an 'r' option to sort - 'sort -k2 -nr').
dpkg-query --show --showformat='${Package;-50}\t${Installed-Size}\n' | sort -k2 -n
Comments
Add your comment
Comments are currently disabled


# rpm -qa --queryformat="%{=NAME} %{SIZE}\n" | sort -k2 -n