View previous topic :: View next topic |
Author |
Message |
Mardok45 n00b
Joined: 21 Jun 2008 Posts: 69 Location: Right behind you
|
Posted: Sun Jun 13, 2010 8:53 pm Post subject: Is there a tool for updating Gentoo machines w/o compiling? |
|
|
I don't actually need this, just been wondering if there's a tool that does this...
Let's say you wanted to put Gentoo on every workstation in the building, but you don't want to make every machine spend an hour or so compiling just to be up-to-date.
Instead of telling all the machines to do an emerge --sync; emerge -uDN world every day/week, you instead put Gentoo onto a dedicated VM. Have that VM do all the compiling, and then you do some kind of rsync operation on the Gentoo file system, and have all the machines sync up with the VM by grabbing the rsync tarball that the VM created.
I hope that made sense.
Does anyone know if there's a tool that does this, or do you have to write the script yourself?
Again, I really don't need this, I was just wondering. |
|
Back to top |
|
|
Jimini l33t
Joined: 31 Oct 2006 Posts: 601 Location: Germany
|
Posted: Sun Jun 13, 2010 9:44 pm Post subject: |
|
|
Of course you can share your portage tree and the distfiles and mount it via NFS, for example. I have never built software on a pc and distributed it to another on, but it is possible. But, of course, you have to take care of different architectures, hardware (=> different useflags) and so on. Some months ago I read an article about a public pc-pool running on Gentoo. Depending on your network, a solution using PXE could be very useful.
Best regards,
Jimini _________________ "The most merciful thing in the world, I think, is the inability of the human mind to correlate all its contents." (H.P. Lovecraft: The Call of Cthulhu) |
|
Back to top |
|
|
kernelOfTruth Watchman
Joined: 20 Dec 2005 Posts: 6111 Location: Vienna, Austria; Germany; hello world :)
|
|
Back to top |
|
|
jongeek Tux's lil' helper
Joined: 13 Jul 2007 Posts: 135 Location: The Humid, Festering Swamps of Florida
|
Posted: Sun Jun 13, 2010 10:51 pm Post subject: |
|
|
net-proxy/http-replicator can share both binary and source files from one machine to others. I use it at work so I don't have to download/build packages on multiple systems. You may need to set up more than one if your architectures or CFLAGS differ from one system to another. Or use multiple build VMs. |
|
Back to top |
|
|
Ion Silverbolt Apprentice
Joined: 04 Nov 2004 Posts: 203
|
Posted: Sun Jun 13, 2010 10:56 pm Post subject: |
|
|
You can have one machine do the compiling and have a binhost setup so the other machines install the pre-compiled binaries from the binhost. This is especially effective if all the workstations use the same cpu arch. If not, you might have to set up more than one, or use more generic arch flags to support a wider variety of architectures.
It's not too hard to setup at all either. I compile binhost files all the time for my netbook because it's a turd for compiling. |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54237 Location: 56N 3W
|
Posted: Mon Jun 14, 2010 6:10 pm Post subject: |
|
|
Mardok45,
You can set up both a binhost, so that one system serves binary packages to all the others and a compile farm with distcc so that the others contribute to building the binary packages. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54237 Location: 56N 3W
|
Posted: Mon Jun 14, 2010 6:17 pm Post subject: |
|
|
Moved from Gentoo Chat to Installing Gentoo. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
cach0rr0 Bodhisattva
Joined: 13 Nov 2008 Posts: 4123 Location: Houston, Republic of Texas
|
Posted: Mon Jun 14, 2010 7:00 pm Post subject: |
|
|
NeddySeagoon wrote: | Mardok45,
You can set up both a binhost, so that one system serves binary packages to all the others and a compile farm with distcc so that the others contribute to building the binary packages. |
++
this is what I do at work
rackspace has gentoo 10.1 Xen guests that come without portage, and without a number of other things I need for work.
I've not looked at the binhost process, but distcc for damn sure makes things loads easier
(we're up to 24 gentoo servers now, btw, and this has easily tripled our scalability!) _________________ Lost configuring your system?
dump lspci -n here | see Pappy's guide | Link Stash |
|
Back to top |
|
|
pilla Bodhisattva
Joined: 07 Aug 2002 Posts: 7729 Location: Underworld
|
Posted: Thu Jun 17, 2010 10:52 am Post subject: |
|
|
Moved from Installing Gentoo to Portage & Programming. _________________ "I'm just very selective about the reality I choose to accept." -- Calvin |
|
Back to top |
|
|
|