dpkg包管理查看系统所有包的大小并排序

dpkg-query -W --showformat='${Installed-Size} ${Package} ${Status}\n'|grep -v deinstall|sort -n|awk '{print $1" "$2}'


这个脚本可以列出所有已安装包的大小并排序,有兴趣的可以继续完善.

猜你喜欢

转载自blog.csdn.net/hobertony_7/article/details/45147473