LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1934|回复: 5

Using 'until' with portage

[复制链接]
发表于 2006-10-6 17:55:17 | 显示全部楼层 |阅读模式
Have you ever updated your world or system and walked away only to come back several hours later to find out the update did not complete because a package failed?

The following simple command list and bash 'until' command will let you update your world or system to completion and skip those packages that failed:

Code Listing 3.1: Using until to skip broken packages

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

Once the command list completes, you can find out which packages failed by running the following command:

Code Listing 3.2: Checking for failed packages

# emerge -Dup world

Warning: Under certain circumstances, this can yield an unusable system. Always check the output of emerge -Dup world prior to using this tip.
发表于 2006-10-6 18:15:25 | 显示全部楼层
这样就不用一会儿看一下一会儿看一下了,可以安心的去干别的了。
回复 支持 反对

使用道具 举报

发表于 2006-10-6 20:25:47 | 显示全部楼层
谢谢fei提醒,已经从最新的Gentoo News Letter里看见了。
回复 支持 反对

使用道具 举报

发表于 2006-10-6 22:00:26 | 显示全部楼层
好东西,赞的……
回复 支持 反对

使用道具 举报

发表于 2006-10-7 12:13:15 | 显示全部楼层
以后可以不怕中断了
呵呵 早发现就好了
回复 支持 反对

使用道具 举报

发表于 2006-10-8 11:19:19 | 显示全部楼层
顶一个,好久没UPDATE了
有空试一下
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表