On Wednesday 25 February 2009 08:49:37 Zhu Sha Zang wrote: > Stroller escreveu: > > On 25 Feb 2009, at 12:50, Zhu Sha Zang wrote: > >> ... I know that i can do a emerge -uDN world and upgrade all > >> programs that in the "world enviroment". But some time ago i see > >> in this list a way to check and upgrade all programs installed in > >> system. > >> > >> Someone remember or know how i can do it? > > > > Could it have been this thread: > > http://thread.gmane.org/gmane.linux.gentoo.user/202559 > > > > I think there were some warnings there against it, but IIRC I > > didn't find them terribly specific or compelling, so 'emerge -1 > > `eix -Iu --only-names`' works here. I would think your need for > > this would be rare, however, and you should be sure to run > > revdep-rebuild afterwards. > > > > Stroller. > > Thakns Stroller, i'm using something like this > > eix -u > upgrade.txt > > vi upgrade.txt (editing lines that useless and adding "emerge -vauDN") > > sh upgrade.txt. > > SOLVED at all. > > Thanks again.
Try this if you want to save yourself a lot of editing: eix -u | awk '/^\[/{print "emerge -vauDN ", $2}' If want to redirect to an executable file, then use this: eix -u | awk 'BEGIN{print "# /usr/bin/bash\n"} /^\[/{print "emerge -vauDN ", $2}' (Above should be all one line.)