summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xgentoo-without-dependee10
1 files changed, 10 insertions, 0 deletions
diff --git a/gentoo-without-dependee b/gentoo-without-dependee
new file mode 100755
index 0000000..eefbe3e
--- /dev/null
+++ b/gentoo-without-dependee
@@ -0,0 +1,10 @@
+#!/usr/bin/env zsh
+
+equery list '*' | cut -d " " -f 5 | cut -d: -f 1 | \
+while read line; do
+ DEP=$(echo "$(equery depends $line | wc -l) - 1" | bc)
+ if [[ $DEP == -1 ]]; then
+ echo $line
+ fi
+done #< /var/lib/portage/world
+