Am 12.08.2011 11:58, schrieb dhk:
> I have a Gentoo Box that is a standalone with no internet access.  Is
> there a way I can update it by using my laptop?
> 
> It would be nice to be able to sync a copy of my world list on my laptop
> without clobbering my laptop's world list.  Then do a fetch for the
> standalone world and when on the console pf the standalone do the update
> to the fetched packages on the laptop.  The idea is not to have the
> laptop as an image of the standalone, but as a server to sync to while
> keeping the laptop's world separate.
> 
> Thanks,
> 
> dhk
> 

emerge supports an environment variable PORTAGE_CONFIGROOT which
specifies the root directory for stuff like
$PORTAGE_CONFIGROOT/etc/make.conf
$PORTAGE_CONFIGROOT/var/lib/portage/world
and so on.

You can simply copy all relevant files over to your laptop, in a
dedicated directory structure and then run
emerge --fetchonly --config-root <custom_dir> -avuD @world

There is also a ROOT environment variable (and --root parameter). You
might have to play around with both to get the right results.

If you play around with ROOT, I'd be happy to hear some experiences.
especially where it affects portage and where not.

Hope this helps,
Florian Philipp

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to