On Wednesday 16 July 2003 22:54, donnie berkholz wrote: > oom <[EMAIL PROTECTED]> said: > > I have been pondering the fastest way to setup other gentoo boxes eg: > > > > I setup 1 box with the config I want and maybe even do a emerge -b so > > that binary packages are created. > > > > Now I want to go to another box install the base and type emerge world > > and watch the distro put itself together with the same pacakge > > configuration (minus /etc/ files etc).. how is the best way to do this > > ? > > > > I was thinking mounting the /usr/portage/distfiles via nfs (or copy > > them local) and grab the /var/db/pkg directory > > then emerge world -e > > > > Are there any other files or directories I will need to nab ? > > Instead of /var/db/pkg/, what you probably want is /var/cache/edb/world. > Then emerge -u world should do it. (Test for yourself) Sharing or scp'ing > distfiles is also a good idea, as you mentioned.
Mount /usr/portage/ via nfs instead. That way you don't have to 'emerge rsync' again. I do it with my boxes. Wouldn't 'emerge --usepkg -e world' be a better choice after /var/cache/edb/world is copied over to the second system? Using 'emerge -e world' is recommended when someone changes their use flags or CFLAGS and wants all installed packages rebuilt using the new flags. Copying over /var/cache/edb/world and running 'emerge --usepkg -e world' will make the system think every package needs reinstalled from binary packages if available and if not rebuild them from source. 'emerge -u world' will only update packages that need updating. -- [EMAIL PROTECTED] mailing list
