diff options
author | Lars Wirzenius <liw@liw.fi> | 2011-06-12 14:11:08 +0100 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2011-06-12 14:11:08 +0100 |
commit | 6a81acaa445bbf8cf823f282d10be1dc218e3c61 (patch) | |
tree | f3ee0e201bb3c0a2a18a45492624279ff154257e | |
parent | d9f43f7f657190843478dae9b4eab8a28d8fb7ec (diff) | |
download | liw-automation-6a81acaa445bbf8cf823f282d10be1dc218e3c61.tar.gz |
Only list optional and extra packages.
-rwxr-xr-x | scripts/list-nonauto-packages | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/scripts/list-nonauto-packages b/scripts/list-nonauto-packages index fda9a23..522f05c 100755 --- a/scripts/list-nonauto-packages +++ b/scripts/list-nonauto-packages @@ -19,5 +19,12 @@ set -e comm -23 \ <(dpkg --get-selections | awk '$2 == "install" { print $1 }' | sort) \ - <(apt-mark showauto | sort) + <(apt-mark showauto | sort) | +while read pkg +do + pri="$(dpkg --status $pkg | awk '/^Priority:/ { print $2 }')" + case "$pri" in + optional|extra) echo "$pkg" ;; + esac +done |