Great script for world update.

Discussion in general that pertains to Sabayon Linux - Must Pertain to Sabayon Linux

Moderator: Moderators

Great script for world update.

Postby anagor » Sun Nov 05, 2006 2:33

Hi all,
While I was struggling with "world" update, checking every half an hour to see if it was still running, and resuming it if it had failed... well you know the routine, I've stumbled across this script:
http://forums.gentoo.org/viewtopic-t-497125-highlight-updateworld.html
It really helped me, the script is quite simple to understand and even simpler to use:
Copy the entire script to a file and run it as a root, first "#sh update-world.sh -p", and then
"#sh update-world.sh -i"
It will start updating your world, automatically skipping packages that failed, until there is no more packages to compile or until it got to the package that without it compiling successfully it can't proceed.
The script produces a list of failed packages, that you can check.
It surely saved me a lot of time and trouble :)
Give it a try if you plan to do "#emerge -auvD world ".

cheers :)
anagor
Simple Hen
 
Posts: 59
Joined: Tue Oct 17, 2006 9:11

Postby wolfden » Sun Nov 05, 2006 2:51

tried it a while ago, didn't care for it

--resume --skipfirst works well for me
wolfden
Sharecropper
 
Posts: 9050
Joined: Sat Jan 14, 2006 0:55
Location: Midwest USA

Postby cvill64 » Sun Nov 05, 2006 3:53

the list of failed packages is very nice indeed, however, for those that don't care about that, you can always use the "until" command which is also very nice

# emerge world || until emerge --resume --skipfirst; do emerge --resume --skipfirst; done

which will do the same things and just skip the failed packages, this is also really good to use along with an emerge -e of just recompiling stuff only

# emerge -e system || until emerge --resume --skipfirst; do emerge --resume --skipfirst; done && emerge -e world || until emerge --resume --skipfirst; do emerge --resume --skipfirst; done

which will recompile your whole system with new cflags or use flags that you added to make.conf and just skip ones that failed

however, again, this doesn't create a nice little log and such with error messages and such, just another way to do it ;) but then again, I never do that on my production system coz there is no reason too, stuff will get updated when needed
cvill64
Sagely Hen
 
Posts: 2185
Joined: Fri Dec 30, 2005 10:03
Location: Virginia, USA


Return to Sabayon Linux General Discussion

Who is online

Users browsing this forum: No registered users and 0 guests