1 2 3 4
#!/bin/sh # List all installed packages and list them by their size. dpkg-query -W --showformat='${Package} ${Installed-Size}\n' | sort -k2 -n -r