Re: [gentoo-user] Synchronizing 2 Gentoo systems
Ow Mun Heng ha scritto: On Mon, 2005-02-07 at 04:35, Walter Dnes wrote: On Sat, Feb 05, 2005 at 11:10:37AM +0100, Bastian Balthazar Bux wrote I don't think I made myself clear enough. I do *NOT* want to duplicate /portage/distfiles. I want to duplicate machine A's definition of "world" on Machine B. try: # emerge -uDpv --newuse --noreplace $WORLD_OF_PIII this should both keep updated your machine and emerge all the packages not present. The --noreplace is needed to not force portage recompile a package already present. better: # scp 192.168.0.2:/var/lib/portage/world /tmp/piii_world # emerge -uDav --newuse --noreplace $(cat /tmp/piii_world) on your p4 Thank you very much. That's exactly what I was looking for. SInce we're talking about it _this_ way, is there any possibility in actually just mounting NFS that points straight to /var/lib/portage/world?? That way, the scp won't be needed. not really, /var/lib/portage/ contains two files on my machine, config and world, both are specific for their box, modified from portage of that box. you can mount it in a different directory say /var/lib/portage_piii/ and sync from that but not mount it directly in the same place. cheers francesco -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Synchronizing 2 Gentoo systems
On Mon, 2005-02-07 at 04:35, Walter Dnes wrote: > On Sat, Feb 05, 2005 at 11:10:37AM +0100, Bastian Balthazar Bux wrote > > > >> I don't think I made myself clear enough. I do *NOT* want to > > >>duplicate /portage/distfiles. I want to duplicate machine A's > > >>definition > > >>of "world" on Machine B. > > >> > > >> > > >> > > >try: > > ># emerge -uDpv --newuse --noreplace $WORLD_OF_PIII > > >this should both keep updated your machine and emerge all the packages > > >not present. > > >The --noreplace is needed to not force portage recompile a package > > >already present. > > > > better: > > > > # scp 192.168.0.2:/var/lib/portage/world /tmp/piii_world > > # emerge -uDav --newuse --noreplace $(cat /tmp/piii_world) > > > > on your p4 > > Thank you very much. That's exactly what I was looking for. SInce we're talking about it _this_ way, is there any possibility in actually just mounting NFS that points straight to /var/lib/portage/world?? That way, the scp won't be needed. -- Ow Mun Heng Gentoo/Linux on DELL D600 1.4Ghz 98% Microsoft(tm) Free!! Neuromancer 16:08:08 up 6:48, 4 users, load average: 0.16, 0.34, 0.43 -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Synchronizing 2 Gentoo systems
On Sat, 2005-02-05 at 07:06, Neil Walker wrote: > Ow Mun Heng wrote: > > >>The simplest way is to use NFS and simply mount /usr/portage on the host > >>machine from the others. It works well here on a network of 6 machines. > >> > >>Alternatively, you can use rsync. There is a how-to somewhere on the > >>Gentoo website. > > > > > > This is what I do. > > > > 1. echo 'GENTOO_MIRRORS="http://129.253.108.99/sync/";' >> /etc/make.conf > > 2. Set up Apache so that it serves the portage distfiles (actually) > > 3. Set up a Rsync cron job or something that just polls this box. No > > need to for a how to. > > > Hmm. I don't think you actually bothered to read my message - other than > the last line. :P I _was_ responding to the _last_ line :-p -- Ow Mun Heng Gentoo/Linux on DELL D600 1.4Ghz 98% Microsoft(tm) Free!! Neuromancer 16:06:21 up 6:46, 4 users, load average: 0.21, 0.42, 0.47 -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Synchronizing 2 Gentoo systems
Martin Scharrer wrote: Then mounting the /usr/portage tree with NFS is definitely the way to go. I have the one machine set up with a cron job to sync at midnight every day and an appropriate line in /etc/fstab on each of the other machines. That is it. I never have to sync the other machines. But what is with the portage cache in /var/cache/edb which is normally updated at the end of "emerge --sync"? I think, you have to run "emerge --metadata" on the other machines to update this cache. What is you experience with this? It's optional. It just makes the first emerge access faster. You can run the "emerge --metadata" from a cron job running, say, 10 minutes after the "emerge --sync" if you wish. -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Synchronizing 2 Gentoo systems
On Sat, Feb 05, 2005 at 11:10:37AM +0100, Bastian Balthazar Bux wrote > >> I don't think I made myself clear enough. I do *NOT* want to > >>duplicate /portage/distfiles. I want to duplicate machine A's > >>definition > >>of "world" on Machine B. > >> > >> > >> > >try: > ># emerge -uDpv --newuse --noreplace $WORLD_OF_PIII > >this should both keep updated your machine and emerge all the packages > >not present. > >The --noreplace is needed to not force portage recompile a package > >already present. > > better: > > # scp 192.168.0.2:/var/lib/portage/world /tmp/piii_world > # emerge -uDav --newuse --noreplace $(cat /tmp/piii_world) > > on your p4 Thank you very much. That's exactly what I was looking for. -- Walter Dnes <[EMAIL PROTECTED]> An infinite number of monkeys pounding away on keyboards will eventually produce a report showing that Windows is more secure, and has a lower TCO, than linux. -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Synchronizing 2 Gentoo systems
Hi Nail, On Saturday 05 February 2005 10:01, Neil Walker wrote: > Then mounting the /usr/portage tree with NFS is definitely the way to > go. I have the one machine set up with a cron job to sync at midnight > every day and an appropriate line in /etc/fstab on each of the other > machines. That is it. I never have to sync the other machines. But what is with the portage cache in /var/cache/edb which is normally updated at the end of "emerge --sync"? I think, you have to run "emerge --metadata" on the other machines to update this cache. What is you experience with this? I'm sharing the portage tree between to different gentoo installations on the same machine (AMD64, one 32Bit, one 64Bit installation). best Martin -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Synchronizing 2 Gentoo systems
Bastian Balthazar Bux ha scritto: Walter Dnes ha scritto: On Fri, Feb 04, 2005 at 10:56:18AM +0800, Ow Mun Heng wrote On Fri, 2005-02-04 at 09:40, Neil Walker wrote: Walter Dnes wrote: Is there an "offifial Gentoo method" for syncing installed packages on two machines? The simplest way is to use NFS and simply mount /usr/portage on the host machine from the others. It works well here on a network of 6 machines. Alternatively, you can use rsync. There is a how-to somewhere on the Gentoo website. This is what I do. 1. echo 'GENTOO_MIRRORS="http://129.253.108.99/sync/";' >> /etc/make.conf 2. Set up Apache so that it serves the portage distfiles (actually) 3. Set up a Rsync cron job or something that just polls this box. No need to for a how to. I don't think I made myself clear enough. I do *NOT* want to duplicate /portage/distfiles. I want to duplicate machine A's definition of "world" on Machine B. try: # emerge -uDpv --newuse --noreplace $WORLD_OF_PIII this should both keep updated your machine and emerge all the packages not present. The --noreplace is needed to not force portage recompile a package already present. better: # scp 192.168.0.2:/var/lib/portage/world /tmp/piii_world # emerge -uDav --newuse --noreplace $(cat /tmp/piii_world) on your p4 -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Synchronizing 2 Gentoo systems
Walter Dnes ha scritto: On Fri, Feb 04, 2005 at 10:56:18AM +0800, Ow Mun Heng wrote On Fri, 2005-02-04 at 09:40, Neil Walker wrote: Walter Dnes wrote: Is there an "offifial Gentoo method" for syncing installed packages on two machines? The simplest way is to use NFS and simply mount /usr/portage on the host machine from the others. It works well here on a network of 6 machines. Alternatively, you can use rsync. There is a how-to somewhere on the Gentoo website. This is what I do. 1. echo 'GENTOO_MIRRORS="http://129.253.108.99/sync/";' >> /etc/make.conf 2. Set up Apache so that it serves the portage distfiles (actually) 3. Set up a Rsync cron job or something that just polls this box. No need to for a how to. I don't think I made myself clear enough. I do *NOT* want to duplicate /portage/distfiles. I want to duplicate machine A's definition of "world" on Machine B. try: # emerge -uDpv --newuse --noreplace $WORLD_OF_PIII this should both keep updated your machine and emerge all the packages not present. The --noreplace is needed to not force portage recompile a package already present. -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Synchronizing 2 Gentoo systems
Walter Dnes wrote: The simplest way is to use NFS and simply mount /usr/portage on the host machine from the others. It works well here on a network of 6 machines. I don't think I made myself clear enough. I do *NOT* want to duplicate /portage/distfiles. I want to duplicate machine A's definition of "world" on Machine B. Then mounting the /usr/portage tree with NFS is definitely the way to go. I have the one machine set up with a cron job to sync at midnight every day and an appropriate line in /etc/fstab on each of the other machines. That is it. I never have to sync the other machines. -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Synchronizing 2 Gentoo systems
On Fri, Feb 04, 2005 at 10:56:18AM +0800, Ow Mun Heng wrote > On Fri, 2005-02-04 at 09:40, Neil Walker wrote: > > Walter Dnes wrote: > > > Is there an "offifial Gentoo method" for syncing installed packages on > > > two > > > machines? > > > > The simplest way is to use NFS and simply mount /usr/portage on the host > > machine from the others. It works well here on a network of 6 machines. > > > > Alternatively, you can use rsync. There is a how-to somewhere on the > > Gentoo website. > > This is what I do. > > 1. echo 'GENTOO_MIRRORS="http://129.253.108.99/sync/";' >> /etc/make.conf > 2. Set up Apache so that it serves the portage distfiles (actually) > 3. Set up a Rsync cron job or something that just polls this box. No > need to for a how to. I don't think I made myself clear enough. I do *NOT* want to duplicate /portage/distfiles. I want to duplicate machine A's definition of "world" on Machine B. -- Walter Dnes <[EMAIL PROTECTED]> An infinite number of monkeys pounding away on keyboards will eventually produce a report showing that Windows is more secure, and has a lower TCO, than linux. -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Synchronizing 2 Gentoo systems
Ow Mun Heng wrote: The simplest way is to use NFS and simply mount /usr/portage on the host machine from the others. It works well here on a network of 6 machines. Alternatively, you can use rsync. There is a how-to somewhere on the Gentoo website. This is what I do. 1. echo 'GENTOO_MIRRORS="http://129.253.108.99/sync/";' >> /etc/make.conf 2. Set up Apache so that it serves the portage distfiles (actually) 3. Set up a Rsync cron job or something that just polls this box. No need to for a how to. Hmm. I don't think you actually bothered to read my message - other than the last line. :P -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Synchronizing 2 Gentoo systems
On Fri, 2005-02-04 at 09:40, Neil Walker wrote: > Walter Dnes wrote: > > Is there an "offifial Gentoo method" for syncing installed packages on two > > machines? > > The simplest way is to use NFS and simply mount /usr/portage on the host > machine from the others. It works well here on a network of 6 machines. > > Alternatively, you can use rsync. There is a how-to somewhere on the > Gentoo website. This is what I do. 1. echo 'GENTOO_MIRRORS="http://129.253.108.99/sync/";' >> /etc/make.conf 2. Set up Apache so that it serves the portage distfiles (actually) 3. Set up a Rsync cron job or something that just polls this box. No need to for a how to. -- Ow Mun Heng Gentoo/Linux on DELL D600 1.4Ghz 98% Microsoft(tm) Free!! Neuromancer 10:54:15 up 1:33, 6 users, load average: 0.37, 0.89, 1.07 -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Synchronizing 2 Gentoo systems
Walter Dnes wrote: Is there an "offifial Gentoo method" for syncing installed packages on two machines? The simplest way is to use NFS and simply mount /usr/portage on the host machine from the others. It works well here on a network of 6 machines. Alternatively, you can use rsync. There is a how-to somewhere on the Gentoo website. -- gentoo-user@gentoo.org mailing list
[gentoo-user] Synchronizing 2 Gentoo systems
My main system is a 5 and a half year old Dell (450 mhz PIII and 128 megs of RAM) which refuses to die. They don't make them like that anymore. My "heir apparent" system is a P4 white-box with exactly 4 times the RAM and the P4 is 4 times as fast as the Dell's PIII. I turn on the P4 once a month and "emerge --sync" and update world on it. However, I occasionally install new software on the PIII. Is there a way to keep the P4 sync'd? I'm thinking something along the lines of copying over /var/lib/portage/world and running a revdep-rebuild. Is there an "offifial Gentoo method" for syncing installed packages on two machines? -- Walter Dnes <[EMAIL PROTECTED]> An infinite number of monkeys pounding away on keyboards will eventually produce a report showing that Windows is more secure, and has a lower TCO, than linux. -- gentoo-user@gentoo.org mailing list