public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] emerge --sync
@ 2005-11-02  7:20 Martins Steinbergs
  2005-11-02  7:34 ` Dale
                   ` (2 more replies)
  0 siblings, 3 replies; 31+ messages in thread
From: Martins Steinbergs @ 2005-11-02  7:20 UTC (permalink / raw
  To: gentoo-users

hi,

got this error not the first time, shouldnt there be a sync option to sync 
part of portage not the whole thingy?


002617 !!! Digest verification Failed:
002618 !!!    /usr/portage/dev-python/pyrex/pyrex-0.9.3.1.ebuild
002619 !!! Reason: Filesize does not match recorded size
002620 
002621 >>> Please ensure you have sync'd properly. Please try 'emerge sync' 
and
002622 >>> optionally examine the file(s) for corruption. A sync will fix most 
cases.


martins
-- 
Linux 2.6.13 AMD Athlon(tm) 64 Processor 3200+
 09:08:42 up 23 min,  4 users,  load average: 0.18, 0.31, 0.57
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re: [gentoo-user] emerge --sync
  2005-11-02  7:20 Martins Steinbergs
@ 2005-11-02  7:34 ` Dale
  2005-11-02 12:24   ` Dale
  2005-11-02 13:06 ` Peter Campion-Bye
  2005-11-02 13:16 ` Qian Qiao
  2 siblings, 1 reply; 31+ messages in thread
From: Dale @ 2005-11-02  7:34 UTC (permalink / raw
  To: gentoo-user

Martins Steinbergs wrote:

>hi,
>
>got this error not the first time, shouldnt there be a sync option to sync 
>part of portage not the whole thingy?
>
>
>002617 !!! Digest verification Failed:
>002618 !!!    /usr/portage/dev-python/pyrex/pyrex-0.9.3.1.ebuild
>002619 !!! Reason: Filesize does not match recorded size
>002620 
>002621 >>> Please ensure you have sync'd properly. Please try 'emerge sync' 
>and
>002622 >>> optionally examine the file(s) for corruption. A sync will fix most 
>cases.
>
>
>martins
>  
>
I got the same thing.  We need to wait a little while and sync again. 
Give them a little time to work it out I guess.

I did delete the file and redownload it but it still gives the same
error so the file is likely fine just a bad sync.  I have had these
before and I usually re-sync several hours later and it works fine then.

I have no clue what causes it though.  I just know it needs a little time. 

Dale
:-)

-- 
To err is human, I'm most certainly human.

 

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re: [gentoo-user] emerge --sync
  2005-11-02  7:34 ` Dale
@ 2005-11-02 12:24   ` Dale
  0 siblings, 0 replies; 31+ messages in thread
From: Dale @ 2005-11-02 12:24 UTC (permalink / raw
  To: gentoo-user



I just done another sync and the error is gone.  If you have not
re-synced yet, you should be able to do so and clear up that error.

Dale


-- 
To err is human, I'm most certainly human.

 

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re: [gentoo-user] emerge --sync
  2005-11-02  7:20 Martins Steinbergs
  2005-11-02  7:34 ` Dale
@ 2005-11-02 13:06 ` Peter Campion-Bye
  2005-11-02 13:16 ` Qian Qiao
  2 siblings, 0 replies; 31+ messages in thread
From: Peter Campion-Bye @ 2005-11-02 13:06 UTC (permalink / raw
  To: gentoo-user

I find that temporarily putting a line:
FEATURES="-strict"
in your make.conf usually gets around this problem.


> hi,
>
> got this error not the first time, shouldnt there be a sync option to sync
> part of portage not the whole thingy?
>
>
> 002617 !!! Digest verification Failed:
> 002618 !!!    /usr/portage/dev-python/pyrex/pyrex-0.9.3.1.ebuild
> 002619 !!! Reason: Filesize does not match recorded size
> 002620
> 002621 >>> Please ensure you have sync'd properly. Please try 'emerge
> sync'
> and
> 002622 >>> optionally examine the file(s) for corruption. A sync will fix
> most
> cases.
>
>
> martins
> --
> Linux 2.6.13 AMD Athlon(tm) 64 Processor 3200+
>  09:08:42 up 23 min,  4 users,  load average: 0.18, 0.31, 0.57
> --
> gentoo-user@gentoo.org mailing list
>
>

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re: [gentoo-user] emerge --sync
  2005-11-02  7:20 Martins Steinbergs
  2005-11-02  7:34 ` Dale
  2005-11-02 13:06 ` Peter Campion-Bye
@ 2005-11-02 13:16 ` Qian Qiao
  2005-11-02 13:34   ` Holly Bostick
  2 siblings, 1 reply; 31+ messages in thread
From: Qian Qiao @ 2005-11-02 13:16 UTC (permalink / raw
  To: gentoo-user

On 11/2/05, Martins Steinbergs <mar@ml.lv> wrote:
> hi,
>
> got this error not the first time, shouldnt there be a sync option to sync
> part of portage not the whole thingy?
>
>
> 002617 !!! Digest verification Failed:
> 002618 !!!    /usr/portage/dev-python/pyrex/pyrex-0.9.3.1.ebuild
> 002619 !!! Reason: Filesize does not match recorded size
> 002620
> 002621 >>> Please ensure you have sync'd properly. Please try 'emerge sync'
> and
> 002622 >>> optionally examine the file(s) for corruption. A sync will fix most
> cases.

You can either wait for a re-sync, or do a:-

# ebuild /path/to/the/ebuild digest

-- Joe

--
There are 3 kinds of people in the world:
Those who can count, and those who can't.

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re: [gentoo-user] emerge --sync
  2005-11-02 13:16 ` Qian Qiao
@ 2005-11-02 13:34   ` Holly Bostick
  0 siblings, 0 replies; 31+ messages in thread
From: Holly Bostick @ 2005-11-02 13:34 UTC (permalink / raw
  To: gentoo-user

Qian Qiao schreef:
> On 11/2/05, Martins Steinbergs <mar@ml.lv> wrote:
> 
>> 002617 !!! Digest verification Failed: 002618 !!! 
>> /usr/portage/dev-python/pyrex/pyrex-0.9.3.1.ebuild 002619 !!! 
>> Reason: Filesize does not match recorded size 002620 002621 >>> 
>> Please ensure you have sync'd properly. Please try 'emerge sync' 
>> and 002622 >>> optionally examine the file(s) for corruption. A 
>> sync will fix most cases.
> 
> 
> You can either wait for a re-sync, or do a:-
> 
> # ebuild /path/to/the/ebuild digest
> 

That's true, but redigesting official Portage files manually is a *very*
bad habit to get into, and I would strongly recommend against it.

The whole point of Portage's digesting and digest verification is to
ensure/verify that the files you have received have not been tampered
with/contain no errors.

If the official digest doesn't match the file, *something is wrong*, and
unless you (generic 'you') happen to be in a position to know what that
is, and because you know, you can safely override Portage (which is what
a manual digest does), you in fact cannot safely override Portage, and
should not do so.

Patience is a virtue. Wait, and sync again, for official files. Overlay
files are a different story.

For all you know, the 'problem' is that the mirrors have not finished
syncing yet, and you only have half the distfile/the wrong distfile. So
when you attempt to emerge, the emerge will fail because there's
actually something wrong with the tarball, and then you've screwed your
digest and have to sync again anyway to fix it, and you didn't get any
result anyway (the app has not emerged).

Just wait. Portage fixes itself pretty quick.

Holly
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 31+ messages in thread

* [gentoo-user] emerge --sync
@ 2006-05-20 22:56 Leandro Melo de Sales
  2006-05-20 23:07 ` Bo Ørsted Andresen
                   ` (2 more replies)
  0 siblings, 3 replies; 31+ messages in thread
From: Leandro Melo de Sales @ 2006-05-20 22:56 UTC (permalink / raw
  To: gentoo-user

Hi folks,

 Due to firewall configuration I can't make a emerge --sync using
rsync, is it possible to do it using ftp or http?

Thanks,
Leandro

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re: [gentoo-user] emerge --sync
  2006-05-20 22:56 Leandro Melo de Sales
@ 2006-05-20 23:07 ` Bo Ørsted Andresen
  2006-05-20 23:13 ` Ilya Hegai
  2006-05-20 23:26 ` Patrick McCauley
  2 siblings, 0 replies; 31+ messages in thread
From: Bo Ørsted Andresen @ 2006-05-20 23:07 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 242 bytes --]

On Sunday 21 May 2006 00:56, Leandro Melo de Sales wrote:
> Due to firewall configuration I can't make a emerge --sync using
> rsync, is it possible to do it using ftp or http?

Try emerge-webrsync. It will use http.

-- 
Bo Andresen

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re: [gentoo-user] emerge --sync
  2006-05-20 22:56 Leandro Melo de Sales
  2006-05-20 23:07 ` Bo Ørsted Andresen
@ 2006-05-20 23:13 ` Ilya Hegai
  2006-05-20 23:26 ` Patrick McCauley
  2 siblings, 0 replies; 31+ messages in thread
From: Ilya Hegai @ 2006-05-20 23:13 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 210 bytes --]

2006/5/21, Leandro Melo de Sales <leandroal@gmail.com>:
>
> Hi folks,
>
> Due to firewall configuration I can't make a emerge --sync using
> rsync, is it possible to do it using ftp or http?
>

emerge-webrsync

[-- Attachment #2: Type: text/html, Size: 460 bytes --]

^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re: [gentoo-user] emerge --sync
  2006-05-20 22:56 Leandro Melo de Sales
  2006-05-20 23:07 ` Bo Ørsted Andresen
  2006-05-20 23:13 ` Ilya Hegai
@ 2006-05-20 23:26 ` Patrick McCauley
  2 siblings, 0 replies; 31+ messages in thread
From: Patrick McCauley @ 2006-05-20 23:26 UTC (permalink / raw
  To: gentoo-user

Leandro, emerge-webrsync should work.  You can download a recent snapshot
from one of the mirrors as an alternate.

Patrick

> Hi folks,
>
>  Due to firewall configuration I can't make a emerge --sync using
> rsync, is it possible to do it using ftp or http?
>
> Thanks,
> Leandro
>
> --
> gentoo-user@gentoo.org mailing list
>
>


-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 31+ messages in thread

* [gentoo-user] emerge --sync
@ 2012-10-15 17:15 Silvio Siefke
  2012-10-15 17:50 ` Alex Schuster
  0 siblings, 1 reply; 31+ messages in thread
From: Silvio Siefke @ 2012-10-15 17:15 UTC (permalink / raw
  To: gentoo-user

Hello,


i try to install a Gentoo Vserver by Hosteurope. Im have take the last
stage archive, because the vserver Archiv is old i think. When i want
run emerge --sync it gives only this message:

receiving incremental file list
media-gfx/gphoto2/ChangeLog
media-gfx/gphoto2/Manifest
media-gfx/gphoto2/gphoto2-2.4.14.ebuild
media-gfx/graphicsmagick/ChangeLog
media-gfx/graphicsmagick/Manifest
media-gfx/graphicsmagick/graphicsmagick-1.3.17.ebuild
ERROR: out of memory in flist_expand [receiver]
rsync error: error allocating core memory buffers (code 22) at util.c(117) [receiver=3.0.9]
rsync: connection unexpectedly closed (2861 bytes received so far) [generator]
rsync error: error in rsync protocol data stream (code 12) at io.c(605) [generator=3.0.9]
>>> Retrying...


Can me someone tell what is it?


Thx and Regards
Silvio


^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re: [gentoo-user] emerge --sync
  2012-10-15 17:15 Silvio Siefke
@ 2012-10-15 17:50 ` Alex Schuster
  2012-10-15 19:03   ` Silvio Siefke
  0 siblings, 1 reply; 31+ messages in thread
From: Alex Schuster @ 2012-10-15 17:50 UTC (permalink / raw
  To: gentoo-user

Silvio Siefke writes:

> i try to install a Gentoo Vserver by Hosteurope. Im have take the last
> stage archive, because the vserver Archiv is old i think. When i want
> run emerge --sync it gives only this message:

[...]
> ERROR: out of memory in flist_expand [receiver]
> rsync error: error allocating core memory buffers (code 22) at
> util.c(117) [receiver=3.0.9] rsync: connection unexpectedly closed
> (2861 bytes received so far) [generator] rsync error: error in rsync
> protocol data stream (code 12) at io.c(605) [generator=3.0.9]
> >>> Retrying...
> 
> Can me someone tell what is it?

As it says, you're out of memory. It seems you are low on RAM, what does
free -m say? Maybe you need to add some swap space?

	Wonko


^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re: [gentoo-user] emerge --sync
  2012-10-15 17:50 ` Alex Schuster
@ 2012-10-15 19:03   ` Silvio Siefke
  2012-10-15 19:56     ` Alan McKinnon
  0 siblings, 1 reply; 31+ messages in thread
From: Silvio Siefke @ 2012-10-15 19:03 UTC (permalink / raw
  To: gentoo-user

On Mon, 15 Oct 2012 19:50:07 +0200
Alex Schuster <wonko@wonkology.org> wrote:

> As it says, you're out of memory. It seems you are low on RAM, what does
> free -m say? Maybe you need to add some swap space?


lvps5-35-240-192 / # free -m
             total       used       free     shared    buffers     cached
Mem:        164600         11     164589          0          0          0
-/+ buffers/cache:         11     164589
Swap:            0          0          0


Regards
Silvio


^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re: [gentoo-user] emerge --sync
  2012-10-15 19:03   ` Silvio Siefke
@ 2012-10-15 19:56     ` Alan McKinnon
  2012-10-15 20:44       ` Silvio Siefke
  2012-10-15 20:57       ` Alex Schuster
  0 siblings, 2 replies; 31+ messages in thread
From: Alan McKinnon @ 2012-10-15 19:56 UTC (permalink / raw
  To: gentoo-user

On Mon, 15 Oct 2012 21:03:59 +0200
Silvio Siefke <siefke_listen@web.de> wrote:

> On Mon, 15 Oct 2012 19:50:07 +0200
> Alex Schuster <wonko@wonkology.org> wrote:
> 
> > As it says, you're out of memory. It seems you are low on RAM, what
> > does free -m say? Maybe you need to add some swap space?
> 
> 
> lvps5-35-240-192 / # free -m
>              total       used       free     shared    buffers
> cached Mem:        164600         11     164589          0
> 0          0 -/+ buffers/cache:         11     164589
> Swap:            0          0          0

You have 164M of RAM, that is not enough. Packages like gcc and glibc
will probably just not compile with so little RAM[1], and there is no
way on a Gentoo machine to avoid compiling those. You have several
options:

- use something else, not Gentoo
- Buy more RAM from the virtual machine provider
- build on another machine and emerge the binary packages.

The first is the one with the least pain.

[1] I have regular 32bit x86 VMs in my test lab that struggle to
properly compile big packages with 256M and sometimes even 512M is not
enough - gcc is the usual culprit.



-- 
Alan McKinnon
alan.mckinnon@gmail.com



^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re: [gentoo-user] emerge --sync
  2012-10-15 19:56     ` Alan McKinnon
@ 2012-10-15 20:44       ` Silvio Siefke
  2012-10-15 20:57       ` Alex Schuster
  1 sibling, 0 replies; 31+ messages in thread
From: Silvio Siefke @ 2012-10-15 20:44 UTC (permalink / raw
  To: gentoo-user

Hello,


On Mon, 15 Oct 2012 21:56:07 +0200

> You have 164M of RAM, that is not enough. Packages like gcc and glibc
> will probably just not compile with so little RAM[1], and there is no
> way on a Gentoo machine to avoid compiling those. You have several
> options:

In the description stand 1 GB, dynamic 2 GB. When thats not enough, then
i not know.

http://www.hosteurope.de/produkt/Virtual-Server-Linux-L

For DNS Backup should enough, and when u run one time emerge package you 
want never have other. And Debian with Plesk what is origin on maschines
is not happy life.


I write to support and we see what they say.


Regards
Silvio


^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re: [gentoo-user] emerge --sync
  2012-10-15 19:56     ` Alan McKinnon
  2012-10-15 20:44       ` Silvio Siefke
@ 2012-10-15 20:57       ` Alex Schuster
  2012-10-15 22:18         ` Florian Philipp
  2012-10-15 22:29         ` Alan McKinnon
  1 sibling, 2 replies; 31+ messages in thread
From: Alex Schuster @ 2012-10-15 20:57 UTC (permalink / raw
  To: gentoo-user

Alan McKinnon writes:

> On Mon, 15 Oct 2012 21:03:59 +0200
> Silvio Siefke <siefke_listen@web.de> wrote:
> 
> > On Mon, 15 Oct 2012 19:50:07 +0200
> > Alex Schuster <wonko@wonkology.org> wrote:
> > 
> > > As it says, you're out of memory. It seems you are low on RAM, what
> > > does free -m say? Maybe you need to add some swap space?
> > 
> > lvps5-35-240-192 / # free -m
> >              total       used       free     shared    buffers
> > cached Mem:        164600         11     164589          0
> > 0          0 -/+ buffers/cache:         11     164589
> > Swap:            0          0          0
> 
> You have 164M of RAM, that is not enough. Packages like gcc and glibc

free -m outputs megabytes, so this would mean he has 164 G of RAM, with
only 11 M being used... something is wrong here. Not sure what.

	Wonko


^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re: [gentoo-user] emerge --sync
  2012-10-15 20:57       ` Alex Schuster
@ 2012-10-15 22:18         ` Florian Philipp
  2012-10-15 22:29         ` Alan McKinnon
  1 sibling, 0 replies; 31+ messages in thread
From: Florian Philipp @ 2012-10-15 22:18 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 1154 bytes --]

Am 15.10.2012 22:57, schrieb Alex Schuster:
> Alan McKinnon writes:
> 
>> On Mon, 15 Oct 2012 21:03:59 +0200
>> Silvio Siefke <siefke_listen@web.de> wrote:
>>
>>> On Mon, 15 Oct 2012 19:50:07 +0200
>>> Alex Schuster <wonko@wonkology.org> wrote:
>>>
>>>> As it says, you're out of memory. It seems you are low on RAM, what
>>>> does free -m say? Maybe you need to add some swap space?
>>>
>>> lvps5-35-240-192 / # free -m
>>>              total       used       free     shared    buffers
>>> cached Mem:        164600         11     164589          0
>>> 0          0 -/+ buffers/cache:         11     164589
>>> Swap:            0          0          0
>>
>> You have 164M of RAM, that is not enough. Packages like gcc and glibc
> 
> free -m outputs megabytes, so this would mean he has 164 G of RAM, with
> only 11 M being used... something is wrong here. Not sure what.
> 
> 	Wonko
> 

You cannot trust `free` on a vserver. Just because the system has that
much RAM, doesn't mean its allocated to your instance.

It should still be enough to use gentoo on it. In fact, I'm doing just that.

Regards,
Florian Philipp


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 262 bytes --]

^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re: [gentoo-user] emerge --sync
  2012-10-15 20:57       ` Alex Schuster
  2012-10-15 22:18         ` Florian Philipp
@ 2012-10-15 22:29         ` Alan McKinnon
  1 sibling, 0 replies; 31+ messages in thread
From: Alan McKinnon @ 2012-10-15 22:29 UTC (permalink / raw
  To: gentoo-user

On Mon, 15 Oct 2012 22:57:17 +0200
Alex Schuster <wonko@wonkology.org> wrote:

> Alan McKinnon writes:
> 
> > On Mon, 15 Oct 2012 21:03:59 +0200
> > Silvio Siefke <siefke_listen@web.de> wrote:
> > 
> > > On Mon, 15 Oct 2012 19:50:07 +0200
> > > Alex Schuster <wonko@wonkology.org> wrote:
> > > 
> > > > As it says, you're out of memory. It seems you are low on RAM,
> > > > what does free -m say? Maybe you need to add some swap space?
> > > 
> > > lvps5-35-240-192 / # free -m
> > >              total       used       free     shared    buffers
> > > cached Mem:        164600         11     164589          0
> > > 0          0 -/+ buffers/cache:         11     164589
> > > Swap:            0          0          0
> > 
> > You have 164M of RAM, that is not enough. Packages like gcc and
> > glibc
> 
> free -m outputs megabytes, so this would mean he has 164 G of RAM,
> with only 11 M being used... something is wrong here. Not sure what.


Oops, indeed. I read the man page (really, I did...)

and my brain performed a

s/mega/kilo/


-- 
Alan McKinnon
alan.mckinnon@gmail.com



^ permalink raw reply	[flat|nested] 31+ messages in thread

* [gentoo-user] emerge --sync
@ 2016-10-24 15:21 Jorge Almeida
  2016-10-24 15:29 ` [gentoo-user] " Martin Vaeth
                   ` (2 more replies)
  0 siblings, 3 replies; 31+ messages in thread
From: Jorge Almeida @ 2016-10-24 15:21 UTC (permalink / raw
  To: gentoo-user

I want to do emerge --sync on computer A and then update computer B by
copying /usr/portage. Is this safe? The point is: does emerge --sync
just updates the contents of /usr/portage or does it also change
something else ?

TIA

Jorge Almeida


^ permalink raw reply	[flat|nested] 31+ messages in thread

* [gentoo-user] Re: emerge --sync
  2016-10-24 15:21 [gentoo-user] emerge --sync Jorge Almeida
@ 2016-10-24 15:29 ` Martin Vaeth
  2016-10-24 15:35   ` Jorge Almeida
  2016-10-24 21:16 ` [gentoo-user] " Håkon Alstadheim
  2016-10-24 21:30 ` Dale
  2 siblings, 1 reply; 31+ messages in thread
From: Martin Vaeth @ 2016-10-24 15:29 UTC (permalink / raw
  To: gentoo-user

Jorge Almeida <jjalmeida@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.



^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re: [gentoo-user] Re: emerge --sync
  2016-10-24 15:29 ` [gentoo-user] " Martin Vaeth
@ 2016-10-24 15:35   ` Jorge Almeida
  2016-10-24 16:36     ` Fernando Rodriguez
  0 siblings, 1 reply; 31+ messages in thread
From: Jorge Almeida @ 2016-10-24 15:35 UTC (permalink / raw
  To: gentoo-user

On Mon, Oct 24, 2016 at 8:29 AM, Martin Vaeth <martin@mvath.de> wrote:
> Jorge Almeida <jjalmeida@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?

Jorge


^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re: [gentoo-user] Re: emerge --sync
  2016-10-24 15:35   ` Jorge Almeida
@ 2016-10-24 16:36     ` Fernando Rodriguez
  2016-10-24 16:45       ` Jorge Almeida
  0 siblings, 1 reply; 31+ messages in thread
From: Fernando Rodriguez @ 2016-10-24 16:36 UTC (permalink / raw
  To: gentoo-user

-----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 <martin@mvath.de> wrote:
>> Jorge Almeida <jjalmeida@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.

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


> Jorge
> 


- -- 

Fernando Rodriguez
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCAAGBQJYDjh0AAoJEPbOFX/5UlwckKsP+gJWRUQQvEzI9Zqu/6DXrCvw
tu3BMejUGngXr6ZAyMZZCXAqzNV1a9+4OrGTohwjYdwRMBni26yuapfGdKABw1kS
hVoM4yLwaos0VCET0gXUmQVWu8hnTgpTqOtFLEtCHjhr0NR1ic+xjr/B+edBxZUo
jNKjpARVggrD/IA56KFPUiRFtxnd2C4szmJH4pQuDoxrZg+mrnujGeMb8bIPmJ/f
yFYh/7hqwcFVUnt3YV0HUWv83FozXY+DdLEhZbAZTBtlaK1VhfjVaVPvbOVmVbpa
fFzYB4hz0gurhK/A3ulY5Upe7Gqpa5kimot2Ca70h2x1i7BSZoTUiBsDkvl0xqMT
YayMZ+FBzUZ+A+rv5v7cyXJCsiY7a9kTdzbR/gOl6joPEovna0MTMMK2mJFU8xW9
srsAFD1p1Fac8mkCvwdhTWt7yFJgkTf3kUC5l8/mY7WqzXh3Vki8IB+xI3/Zdohk
yjWRf4rCP3AKgQnbMV7f6R22GKmBvRcSTcO+L4W63UIotNeLb0eEZlWP5yQa+sfE
2nPSQZmR/HFlZ6ubUceFB/74FhgnZll9zHy76oIB53zQgslm9LRgypRX6S76G3CR
i7t26EWxVxK+GoGqan0nEyGKvwHorBfAPW8KC12nnany+7gtNQo3OcU7irJx+EXJ
qljNWt25JuLFwPHUBNxP
=26W6
-----END PGP SIGNATURE-----


^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re: [gentoo-user] Re: emerge --sync
  2016-10-24 16:36     ` Fernando Rodriguez
@ 2016-10-24 16:45       ` Jorge Almeida
  2016-10-24 16:56         ` Rich Freeman
  0 siblings, 1 reply; 31+ messages in thread
From: Jorge Almeida @ 2016-10-24 16:45 UTC (permalink / raw
  To: gentoo-user

On Mon, Oct 24, 2016 at 9:36 AM, Fernando Rodriguez <cyklonite@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 <martin@mvath.de> wrote:
>>> Jorge Almeida <jjalmeida@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


^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re: [gentoo-user] Re: emerge --sync
  2016-10-24 16:45       ` Jorge Almeida
@ 2016-10-24 16:56         ` Rich Freeman
  2016-10-24 17:44           ` Jorge Almeida
  0 siblings, 1 reply; 31+ messages in thread
From: Rich Freeman @ 2016-10-24 16:56 UTC (permalink / raw
  To: gentoo-user

On Mon, Oct 24, 2016 at 12:45 PM, Jorge Almeida <jjalmeida@gmail.com> wrote:
> On Mon, Oct 24, 2016 at 9:36 AM, Fernando Rodriguez <cyklonite@gmail.com> wrote:
>>
>> 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.
>

It really depends on your situation.

I run Gentoo containers and I typically just bind mount /usr/portage
and distfiles from the host, and that works just fine.  When I was
running Gentoo VMs I had rsync running on a Gentoo box and just shared
out /usr/portage and put it at the front of my mirror list (I also
shared distfiles via http I believe).  If you already have the
services installed it is pretty trivial to set up either and it will
speed things up.

People will go even further if they have large number of Gentoo boxes
and run their own repositories that isn't live-synced with Gentoo's,
allowing for a testing/release cycle.

In general though portage will figure out if any packages moved in the
repo no matter how you sync it.

-- 
Rich


^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re: [gentoo-user] Re: emerge --sync
  2016-10-24 16:56         ` Rich Freeman
@ 2016-10-24 17:44           ` Jorge Almeida
  2016-10-24 18:02             ` Alarig Le Lay
  0 siblings, 1 reply; 31+ messages in thread
From: Jorge Almeida @ 2016-10-24 17:44 UTC (permalink / raw
  To: gentoo-user

On Mon, Oct 24, 2016 at 9:56 AM, Rich Freeman <rich0@gentoo.org> wrote:
> On Mon, Oct 24, 2016 at 12:45 PM, Jorge Almeida <jjalmeida@gmail.com> wrote:
>> On Mon, Oct 24, 2016 at 9:36 AM, Fernando Rodriguez <cyklonite@gmail.com> wrote:
>>>
>>> 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.
>>
>
> It really depends on your situation.
>
> I run Gentoo containers and I typically just bind mount /usr/portage
> and distfiles from the host, and that works just fine.  When I was
> running Gentoo VMs I had rsync running on a Gentoo box and just shared
> out /usr/portage and put it at the front of my mirror list (I also
> shared distfiles via http I believe).  If you already have the
> services installed it is pretty trivial to set up either and it will
> speed things up.
>
> People will go even further if they have large number of Gentoo boxes
> and run their own repositories that isn't live-synced with Gentoo's,
> allowing for a testing/release cycle.
>
> In general though portage will figure out if any packages moved in the
> repo no matter how you sync it.
>

My use case is basic: 2 home computers, I do emerge et. al. on the
faster one and produce binary packages to be used on the other one,
which doesn't even need distfiles, just portage tree plus binary
packages.  I copy stuff between boxes with rsync via ssh. Simple
enough and it seems to be working fine.

Thanks

Jorge


^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re: [gentoo-user] Re: emerge --sync
  2016-10-24 17:44           ` Jorge Almeida
@ 2016-10-24 18:02             ` Alarig Le Lay
  2016-10-24 19:49               ` Rich Freeman
  0 siblings, 1 reply; 31+ messages in thread
From: Alarig Le Lay @ 2016-10-24 18:02 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 714 bytes --]

On Mon Oct 24 10:44:24 2016, Jorge Almeida wrote:
> My use case is basic: 2 home computers, I do emerge et. al. on the
> faster one and produce binary packages to be used on the other one,
> which doesn't even need distfiles, just portage tree plus binary
> packages.  I copy stuff between boxes with rsync via ssh. Simple
> enough and it seems to be working fine.

I use a similar setup for LXC containers running over a gentoo box,
except that my box is setted up to publish the binary packets on a
specified directory that is accessible via HTTP. My LXCs take the binary
packages from this HTTP location and do their normal stuff afterward.
The host box is also a local rsync mirror.

-- 
alarig

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 455 bytes --]

^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re: [gentoo-user] Re: emerge --sync
  2016-10-24 18:02             ` Alarig Le Lay
@ 2016-10-24 19:49               ` Rich Freeman
  2016-10-24 20:27                 ` Alarig Le Lay
  0 siblings, 1 reply; 31+ messages in thread
From: Rich Freeman @ 2016-10-24 19:49 UTC (permalink / raw
  To: gentoo-user

On Mon, Oct 24, 2016 at 2:02 PM, Alarig Le Lay <alarig@swordarmor.fr> wrote:
>
> I use a similar setup for LXC containers running over a gentoo box,
> except that my box is setted up to publish the binary packets on a
> specified directory that is accessible via HTTP. My LXCs take the binary
> packages from this HTTP location and do their normal stuff afterward.
> The host box is also a local rsync mirror.
>

Why not just share everything via bind mounts in this case?  I'd think
that would have less overhead than rsync/http and then you're not
storing files twice.

-- 
Rich


^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re: [gentoo-user] Re: emerge --sync
  2016-10-24 19:49               ` Rich Freeman
@ 2016-10-24 20:27                 ` Alarig Le Lay
  2016-10-25  4:56                   ` Miroslav Rovis
  0 siblings, 1 reply; 31+ messages in thread
From: Alarig Le Lay @ 2016-10-24 20:27 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 307 bytes --]

On Mon Oct 24 15:49:09 2016, Rich Freeman wrote:
> Why not just share everything via bind mounts in this case?  I'd think
> that would have less overhead than rsync/http and then you're not
> storing files twice.

Because I have several host boxes and I build the packages on only one.

-- 
alarig

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 455 bytes --]

^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re: [gentoo-user] emerge --sync
  2016-10-24 15:21 [gentoo-user] emerge --sync Jorge Almeida
  2016-10-24 15:29 ` [gentoo-user] " Martin Vaeth
@ 2016-10-24 21:16 ` Håkon Alstadheim
  2016-10-24 21:30 ` Dale
  2 siblings, 0 replies; 31+ messages in thread
From: Håkon Alstadheim @ 2016-10-24 21:16 UTC (permalink / raw
  To: gentoo-user

Den 24. okt. 2016 17:21, skrev Jorge Almeida:
> I want to do emerge --sync on computer A and then update computer B by
> copying /usr/portage. Is this safe? The point is: does emerge --sync
> just updates the contents of /usr/portage or does it also change
> something else ?
I have one box that I run emerge --sync on, and then export /usr/portage
with nfs to a few other gentoo boxes. Works well. For eix, you can do
eix-update on the nfs-clients. I have been experimenting with building
once and using the nfs-server as binhost. Small variations between the
boxes have so far made me abandon that, but a single version of
/usr/portage has given me no headaches.



^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re: [gentoo-user] emerge --sync
  2016-10-24 15:21 [gentoo-user] emerge --sync Jorge Almeida
  2016-10-24 15:29 ` [gentoo-user] " Martin Vaeth
  2016-10-24 21:16 ` [gentoo-user] " Håkon Alstadheim
@ 2016-10-24 21:30 ` Dale
  2 siblings, 0 replies; 31+ messages in thread
From: Dale @ 2016-10-24 21:30 UTC (permalink / raw
  To: gentoo-user

Jorge Almeida wrote:
> I want to do emerge --sync on computer A and then update computer B by
> copying /usr/portage. Is this safe? The point is: does emerge --sync
> just updates the contents of /usr/portage or does it also change
> something else ?
>
> TIA
>
> Jorge Almeida
>
>

This may be a solution.

net-proxy/http-replicator 

I've used it here in the past when I had two rigs. 

Dale

:-)  :-) 


^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re: [gentoo-user] Re: emerge --sync
  2016-10-24 20:27                 ` Alarig Le Lay
@ 2016-10-25  4:56                   ` Miroslav Rovis
  0 siblings, 0 replies; 31+ messages in thread
From: Miroslav Rovis @ 2016-10-25  4:56 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 938 bytes --]

On 161024-22:27+0200, Alarig Le Lay wrote:
> On Mon Oct 24 15:49:09 2016, Rich Freeman wrote:
> > Why not just share everything via bind mounts in this case?  I'd think
> > that would have less overhead than rsync/http and then you're not
> > storing files twice.
> 
> Because I have several host boxes and I build the packages on only one.

I used to have 3 (even 4) same-hardware machines (well same MBO really)
in daily use, and the local mirror is not an overkill long run. And if
you look for security, then also Air-Gapping and cloning is a perfect
solution, because you get a clean clone for online with an Air-Gapped
that does not see online...

Some peple like rather btrfs ...

I had written a lot about Air-Gapped and cloning on the Forums, but
maybe moderators would call it "blogging" if I gave you the link.

btrfs I never used OTOH.

-- 
Miroslav Rovis
Zagreb, Croatia
http://www.CroatiaFidelis.hr

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 801 bytes --]

^ permalink raw reply	[flat|nested] 31+ messages in thread

end of thread, other threads:[~2016-10-25  5:11 UTC | newest]

Thread overview: 31+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-24 15:21 [gentoo-user] emerge --sync Jorge Almeida
2016-10-24 15:29 ` [gentoo-user] " Martin Vaeth
2016-10-24 15:35   ` Jorge Almeida
2016-10-24 16:36     ` Fernando Rodriguez
2016-10-24 16:45       ` Jorge Almeida
2016-10-24 16:56         ` Rich Freeman
2016-10-24 17:44           ` Jorge Almeida
2016-10-24 18:02             ` Alarig Le Lay
2016-10-24 19:49               ` Rich Freeman
2016-10-24 20:27                 ` Alarig Le Lay
2016-10-25  4:56                   ` Miroslav Rovis
2016-10-24 21:16 ` [gentoo-user] " Håkon Alstadheim
2016-10-24 21:30 ` Dale
  -- strict thread matches above, loose matches on Subject: below --
2012-10-15 17:15 Silvio Siefke
2012-10-15 17:50 ` Alex Schuster
2012-10-15 19:03   ` Silvio Siefke
2012-10-15 19:56     ` Alan McKinnon
2012-10-15 20:44       ` Silvio Siefke
2012-10-15 20:57       ` Alex Schuster
2012-10-15 22:18         ` Florian Philipp
2012-10-15 22:29         ` Alan McKinnon
2006-05-20 22:56 Leandro Melo de Sales
2006-05-20 23:07 ` Bo Ørsted Andresen
2006-05-20 23:13 ` Ilya Hegai
2006-05-20 23:26 ` Patrick McCauley
2005-11-02  7:20 Martins Steinbergs
2005-11-02  7:34 ` Dale
2005-11-02 12:24   ` Dale
2005-11-02 13:06 ` Peter Campion-Bye
2005-11-02 13:16 ` Qian Qiao
2005-11-02 13:34   ` Holly Bostick

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox