Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Want to clean up your world file?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
FilthyPitDog
Apprentice
Apprentice


Joined: 12 Jan 2021
Posts: 197
Location: South Pacific

PostPosted: Sat Aug 17, 2024 6:47 am    Post subject: Want to clean up your world file? Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
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