* [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; 13+ 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] 13+ 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; 13+ 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] 13+ 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; 13+ 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] 13+ 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; 13+ 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] 13+ 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; 13+ 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] 13+ 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; 13+ 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] 13+ 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; 13+ 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] 13+ 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; 13+ 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] 13+ 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; 13+ 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] 13+ 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; 13+ 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] 13+ 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; 13+ 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] 13+ 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; 13+ 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] 13+ 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; 13+ 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] 13+ messages in thread
end of thread, other threads:[~2016-10-25 5:11 UTC | newest] Thread overview: 13+ 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
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox