|
发表于 2012-2-7 21:59:24
|
显示全部楼层
man emerge
...
--usepkg [ y | n ] (-k short option)
Tells emerge to use binary packages (from $PKGDIR) if they are
available, thus possibly avoiding some time-consuming compiles.
This option is useful for CD installs; you can export
PKGDIR=/mnt/cdrom/packages and then use this option to have
emerge "pull" binary packages from the CD in order to satisfy
dependencies.
--usepkgonly [ y | n ] (-K short option)
Tells emerge to only use binary packages (from $PKGDIR). All
the binary packages must be available at the time of dependency
calculation or emerge will simply abort. Portage does not use
$PORTDIR when calculating dependency information so all masking
information is ignored.
...
有两台同配置的机器,就知道这样做的好处了。
在其中一台编译安装时,带上 --buildpkg 参数,就会在 /usr/portage/package 下生成tbz包。
把它拷到另一台上,就可以用 --usepkg 来安装了。
----甚至有人用 emerge -ave --buildpkg system(world?) 这样的方法来快速部署第二台机器--- |
|