summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2016-07-23 23:41:50 -0400
committerLuke Shumaker <lukeshu@sbcglobal.net>2016-07-23 23:41:50 -0400
commitc7cd4daad34e1ceb3127dc379fc52fee4becd336 (patch)
treec80d8cbdbcf75051f591a1c72d1402963f6e7255
parent291a7cb95133288c400ef3853acfa012a451eb27 (diff)
packages.sh 4272
-rwxr-xr-xpackages.sh16
1 files changed, 12 insertions, 4 deletions
diff --git a/packages.sh b/packages.sh
index 454e0e5..627487b 100755
--- a/packages.sh
+++ b/packages.sh
@@ -9,17 +9,25 @@ comm -13 \
<({ pacman -Qgq -- "${grps[@]}"; printf '%s\n' "${pkgs[@]}"; }|sort -u) |
sed 's|^| -> |'
-echo ' => Installed explicitly, but not in packages.txt'
+echo ' => Installed explicitly and not depended on, but not in packages.txt'
comm -23 \
- <(pacman -Qetq|sort -u) \
+ <(pacman -Qetq |sort -u) \
<({ pacman -Qgq -- "${grps[@]}"; printf '%s\n' "${pkgs[@]}"; }|sort -u) |
sed 's|^| -> |'
-echo ' => Installed as dependencies, but only optionally needed'
+echo ' => Installed explicitly and only optionally depended on, but not in packages.txt'
+comm -23 \
+ <(comm -23 \
+ <(pacman -Qettq|sort -u) \
+ <(pacman -Qetq |sort -u)) \
+ <({ pacman -Qgq -- "${grps[@]}"; printf '%s\n' "${pkgs[@]}"; }|sort -u) |
+sed 's|^| -> |'
+
+echo ' => Installed as dependencies, but only optionally depended on'
comm -23 \
<(pacman -Qdttq|sort -u) \
<(pacman -Qdtq |sort -u) |
sed 's|^| -> |'
-echo ' => Installed as dependencies, but no longer needed'
+echo ' => Installed as dependencies, but not depended on'
pacman -Qdtq|sort -u |sed 's|^| -> |'