On Fri, May 13, 2005 5:30 pm, Mark Knecht said:
> On 5/13/05, Neil Bothwick <[EMAIL PROTECTED]> wrote:
>
>> This should do it, but it's a QAD kludge I haven't tested.
>>
>> cat /var/lib/portage/world | while read p; do  [ $(qpkg -I -nc -q $p |
>> wc -l) -eq 2 ] && echo $p; done
>>
>
> Thanks. If I can trust the results then it reduced my world file from
> 235 lines to 109 lines. (slow program...) However I no longer see any
> of Gnome, KDE or fluxbox so I'm not sure it's right quite yet. No idea
> what else is missing or exactly what to put back in.

You should see the KDE and GNOMe meta-packages, but not the individual
pacakges, but, as I said, it is totally tested.

> To do the depclean -p step I'd need to take the output of this and
> place it at the world file location I presume?

The output of depclean -p is too verbose for that, and would put
*everything* back in world anyway. Look at the output and copy ther
packages you know you need back in. the rest will be no longer needed
dependencies that can be removed.

As always, it's best to run "emerge world -uavD" and "revdep-rebuild -p"
after a depclean, just to be safe.



-- 
gentoo-user@gentoo.org mailing list

Reply via email to