aboutsummaryrefslogtreecommitdiffstats
path: root/bin/pacoptpd
diff options
context:
space:
mode:
authorDavid Runge <david.runge@frqrec.com>2014-04-08 19:09:16 +0200
committerDavid Runge <david.runge@frqrec.com>2014-04-08 19:09:16 +0200
commit1ead0f5dfb48039f8e69f10c9702f848d4762ffc (patch)
treec92a91e996fb1bb0dfd78d4230f25620ef1b7098 /bin/pacoptpd
parent51a21f7e98f40a6943103ca70ee1f4a71ccf8941 (diff)
downloaddotfiles-1ead0f5dfb48039f8e69f10c9702f848d4762ffc.tar.gz
dotfiles-1ead0f5dfb48039f8e69f10c9702f848d4762ffc.tar.bz2
dotfiles-1ead0f5dfb48039f8e69f10c9702f848d4762ffc.tar.xz
dotfiles-1ead0f5dfb48039f8e69f10c9702f848d4762ffc.zip
Adding (possibly not needed) pacman helper scripts
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