List Installed Packages by Size in Debian

In an embedded system, space is a very valuable commodity.  Sometimes, there are packages that are installed needlessly and they take up space.  A quick way to see the largest installed files in sorted order is:

dpkg-query -Wf '${Installed-Size}\t${Package}\n' | sort -n


Feel free to donate if this post prevented any headaches! Another way to show your appreciation is to take a gander at these relative ads that you may be interested in:

There's 5 Comments So Far

Share your thoughts, leave a comment!