dpkg-query -W --showformat='${Installed-Size}\t${Package}\n' | sort -k1,1n
Note: uninstalled packages still listed or packages that have left config files behind. To strictly list installed packages:
dpkg-query -W --showformat='${Installed-Size}\t${Package}\t${Status}\n' | sort -k1,1n | grep installed
text/gemini; charset=utf-8
This content has been proxied by September (ba2dc).