Last active
December 9, 2015 17:25
-
-
Save relthyg/702baa8ce6ed8bd27533 to your computer and use it in GitHub Desktop.
List all packages with priorities "required", "important" and "standard"
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
priorities=(required important standard) | |
for priority in "${priorities[@]}" | |
do | |
dpkg-query -W --showformat='${Package}\t${Priority}\n' | grep "$priority$" | sed "s/\t$priority//g" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment