Skip to content

Instantly share code, notes, and snippets.

@linxon
Created November 25, 2019 06:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save linxon/ae3083cff5b735b087eb0cb83613192a to your computer and use it in GitHub Desktop.
Save linxon/ae3083cff5b735b087eb0cb83613192a to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
while read i ; do \
if [[ -n "$(qdepends -Q $i)" ]]; then \
echo '' ; echo 'checking '$i ;
if [[ -n "$(emerge -p --quiet --depclean $i)" ]]; then \
echo $i' needs to stay in @world'
else
echo $i' can be deselected'
echo $i >> /tmp/deselect
fi
fi
done < /var/lib/portage/world
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment