Created
November 25, 2019 06:40
-
-
Save linxon/ae3083cff5b735b087eb0cb83613192a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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