列出已安装软件包,并按占用大小排序

pacman -Qi | awk '/^Name/{name=$3} /^Installed Size/{print $4$5, name}' | sort -hr | head -25

摘自这里

大家有其他好办法欢迎留言!