On Mon, 19 Nov 2007 01:19:06 +0200 ~/Timur Aydin wrote: > Hello, > > How would I go about rebuilding all installed packages, except gcc? I > suppose I could do "emerge --emptytree world", but that would also > merge gcc, which I don't want, because I want to be sure that the > whole system is rebuilt with the same compiler. > > Any help is appreciated... > > -- > Timur Aydin
I'm not an emerge expert but perhaps the following idea will be helpful: /var/lib/world has a (partial) list of installed packages. You could do something like: cat /var/lib/world | grep -v /gcc$ | xargs emerge which would emerge all the packages (except for gcc). You could add flags "-d" to include dependent packages as well. Of course dependencies would bring in some packages multiple times, so you might want to use sort and uniq, which leads to: cat cat /var/lib/world | \ grep -v /gcc$ | \ xargs emerge -d -p | \ sort -u | \ xargs emerge Hope this idea helps towards a solution for you! Regards, David -- [EMAIL PROTECTED] mailing list

