On Thu, 1 Dec 2005, Robert Larson wrote:

> If I understand you correctly, then this may help:
> # obtain a list of installed packages
> emerge -vep world | grep ^'\[ebuild ' | while read a; do
>       # extract the package name
>       pkg=$(echo $a | cut -d']' -f2 | awk '{print $1}')
>       # build a binary of the package
>       quickpkg "/var/db/pkg/${pkg}"
> done

I came up with this (yes, granted it is tied to the file-system layout but
its damn fast!):

  find /var/db/pkg -mindepth 2 -maxdepth 2 -print -exec quickpkg {} \;

I set PKGDIR in /etc/make.conf to drop packages under a directory in
/home (our regular backup system dumps /home to another host). Im assuming

I would also need to save my world file somewhere. I haven't scripted all
the pieces together yet.

> As well, it may help to have:
> FEATURES="buildpkg"
> in your make.conf.  This way anytime a package is installed it will make a
> binary.

Yep.

> I should also mention that gentoo catalyst may be worth looking into on the
> off chance that it may provide you with a solution.  You could build your
> very own stage and boot/rescue disk.  Here is a link to the project site:
> http://www.gentoo.org/proj/en/releng/catalyst/

I haven't quite got my head around Catalyst - anyone made their own
restores CDs?


-- 
-- 
[email protected] mailing list

Reply via email to