# To see the list of installed packages, sorted by size, run the following command: dpkg-query --showformat='${Status}\t${Installed-Size}\t${Package}\n' -W '*' | grep "^install ok" | cut -f2,3 | sort -n -k1 or dpkg-query -W --showformat='${Installed-Size} ${Package}\n' | sort -n