Raffaele Belardi wrote:
> Raffaele Belardi wrote:
>> I have gentoo system A (~x86) on a network that does not allow portage
>> access to internet due to some authentication issue. System B (~amd64)
>> is on another network with no such restrictions.
>>
>> To bypass the restrictions I made a copy of A on a removable media,
>> chroot into it from B and 'emerge-webrsync; emerge --fetchonly' from
>> there. Then attach the media to A and overwrite /usr/portage with the
>> updated one from the removable media.
>>
>> This works but updating the chroot from B always re-downloads all the
>> packages since the first time I created the chroot, not only those from
>> the last update. I suppose portage maintains a database of the installed
>> packages that I need to copy back to the removable media after each
>> system A update, but where is it?
>
> I suppose the database I'm looking for is /var/db/pkg, right?
>

Just tested, it works:

1. cp -a /var/db/pkg from system A to removable media
2. chroot ; emerge-webrsync ; emerge --fetchonly -uDvN world
3. cp -a /usr/portage from removable media to system A
4. next week, goto 1

raffaele

Reply via email to