#!/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