On Mon, Oct 24, 2016 at 9:36 AM, Fernando Rodriguez <cyklon...@gmail.com> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA256
>
> On 10/24/2016 11:35 AM, Jorge Almeida wrote:
>> On Mon, Oct 24, 2016 at 8:29 AM, Martin Vaeth <mar...@mvath.de> wrote:
>>> Jorge Almeida <jjalme...@gmail.com> wrote:
>>>> I want to do emerge --sync on computer A and then update computer B by
>>>> copying /usr/portage. Is this safe?
>>>
>>> Yes, although ...
>>>
>>>> does emerge --sync just updates the contents of /usr/portage
>>>
>>> portage also changes the content of /var/cache/edb, and in some
>>> cases even of /var/db or even of binary packages, but it will
>>> repeat the necessary steps automatically if only /usr/portage
>>> has changed.
>>>
>>>
>> Does this mean that the next time portage is used (e.g., as in "emerge
>> -p ...") it will detect that /usr/portage is not consistent with
>> /var/db... and will fix the latter?
>
> Yes. And you will see the same output that your see at the end of emerge
> - --sync (the profile updates phase, whatever it's called) when you run
> emerge. To update the eix database you need to run eix-update.

OK, looks good.

>
> But a more elegant solution is to emerge app-admin/gentoo-rsync-mirror and
> setup your own rsync mirror.
>

Sure, but it seems kind of overkill.

Thanks,

Jorge

Reply via email to