From 1ead0f5dfb48039f8e69f10c9702f848d4762ffc Mon Sep 17 00:00:00 2001 From: David Runge Date: Tue, 8 Apr 2014 19:09:16 +0200 Subject: Adding (possibly not needed) pacman helper scripts --- bin/pacoptpd | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 bin/pacoptpd (limited to 'bin/pacoptpd') 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 -- cgit v1.2.3-70-g09d2