From b5d410ed65613ae06335ea85d8f037ce9ccd92e7 Mon Sep 17 00:00:00 2001 From: Patrick Simianer Date: Sun, 22 Mar 2020 15:20:36 +0100 Subject: gentoo-without-dependee --- gentoo-without-dependee | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 gentoo-without-dependee 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 + -- cgit v1.2.3