summaryrefslogtreecommitdiff
path: root/gentoo-without-dependee
blob: eefbe3e143e4611014d5a3f66ed35d9bdab2afcf (plain)
1
2
3
4
5
6
7
8
9
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