summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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|^| -> |'