Skip to content

Instantly share code, notes, and snippets.

@trpapp
Created April 9, 2019 14:49
Show Gist options
  • Save trpapp/93130b286d6c9bf3367a2c84c9f3b1f6 to your computer and use it in GitHub Desktop.
Save trpapp/93130b286d6c9bf3367a2c84c9f3b1f6 to your computer and use it in GitHub Desktop.
List all packages w/ install size, package name & priority level
#!/bin/bash
dpkg-query -Wf '${Installed-Size}\t${Package;-40}${Priority}\n' | sort -nr
@trpapp
Copy link
Author

trpapp commented Apr 9, 2019

Optional: add the following to sort by priority level >_ egrep '\s(optional|extra)'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment