View previous topic :: View next topic |
Author |
Message |
FilthyPitDog Apprentice
Joined: 12 Jan 2021 Posts: 196 Location: South Pacific
|
Posted: Sat Aug 17, 2024 6:47 am Post subject: Want to clean up your world file? |
|
|
Here is a script I found that does the trick
Code: | #!/bin/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 |
Cheers! _________________ Gentoo is a way of life... |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|