Script para Gentoo

Cabezon's picture

Vía GWN.

Cuantas veces hemos dejado un "emerge -uD world" y hemos vuelto al cabo de unas horas, y en lugar de ver el update finalizado vemos un error en el cuarto paquete? Y lo que jode eso?

Pues bien:

Update-world is a bash script that was recently created by count_zero and posted in the forums. The script controls the update process and forces portage to skip past failed builds and continue compiling packages until the update list is finished. Failed builds are added to a list for review once the update is finished.

Creo que es muy interesante. Además, se explica el funcionamineto:

update-world --prepare

This begins the update process by creating a list of packages to be emerged, as produced by emerge -uD --newuse world. (Alternatively, you can use update-world --empty to create a list of all packages on the system, akin to emerge -e world). This command creates a list called 'emergelist' in ~/.update-world/. Now, you can use your favorite editor to modify this list how you like--remove packages, change versions, etc. When you have the emergelist how you like it, you're ready to move onto the next step:

update-world --install

This command actually starts the build process, just as if you had typed emerge -uD world. The difference is, if a package fails for some reason or another, that package is added to a list 'failedlist' in ~/.update-world/. Also, a link to the portage log file for that package (usually located in /var/log/portage) is created in ~/.update-world/[date]/log/. Once the process is done, you'll be presented with a list of failed packages to take care of all at once, saving much time. If you ever need to stop the process, just hit 'Control-C' to abort the process. The update can then be restarted at any time, just where it left off, by retyping update-world --install.

Os dejo el link al scrip, sólo tenéis que ponerlo en /usr/bin y darle permisos de ejecución.

Ah! y gracias a counter_zero por el script!