diff options
author | Patrick Simianer <pks@pks.rocks> | 2020-03-22 15:20:36 +0100 |
---|---|---|
committer | Patrick Simianer <pks@pks.rocks> | 2020-03-22 15:20:36 +0100 |
commit | b5d410ed65613ae06335ea85d8f037ce9ccd92e7 (patch) | |
tree | 63e8717c1cbc08b0861471f1bb817d06626d9e28 | |
parent | 24294944f41fdadc536ed6470ceb5e8dc5c7b146 (diff) |
gentoo-without-dependee
-rwxr-xr-x | gentoo-without-dependee | 10 |
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 + |