aboutsummaryrefslogtreecommitdiffstats
path: root/bin/pacoptpd
diff options
context:
space:
mode:
Diffstat (limited to 'bin/pacoptpd')
-rwxr-xr-xbin/pacoptpd14
1 files changed, 14 insertions, 0 deletions
diff --git a/bin/pacoptpd b/bin/pacoptpd
new file mode 100755
index 0000000..30e09ec
--- /dev/null
+++ b/bin/pacoptpd
@@ -0,0 +1,14 @@
+#!/bin/bash
+#
+# list optional dependencies of installed packages
+#
+
+for i in $(pacman -Qq)
+do
+ deps="$(pacman -Qi ${i} | awk '/Optional/,/Required/' | grep -v "Required" | sed -e 's/Optional Deps[ ]*://g' -e 's/^[ ]*/ /')"
+ if [ "$deps" != " None" ]; then
+ echo "$i"
+ echo "$deps"
+ echo ""
+ fi
+done