Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Is there a tool for updating Gentoo machines w/o compiling?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Mardok45
n00b
n00b


Joined: 21 Jun 2008
Posts: 69
Location: Right behind you

PostPosted: Sun Jun 13, 2010 8:53 pm    Post subject: Is there a tool for updating Gentoo machines w/o compiling? Reply with quote

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
View user's profile Send private message
Jimini
l33t
l33t


Joined: 31 Oct 2006
Posts: 601
Location: Germany

PostPosted: Sun Jun 13, 2010 9:44 pm    Post subject: Reply with quote

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
View user's profile Send private message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 6111
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Sun Jun 13, 2010 10:37 pm    Post subject: Reply with quote

afaik Sabayon's equo provides that kind of functionality but that wouldn't be 100% Gentoo anymore ;)
_________________
https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.9.0
https://github.com/kernelOfTruth/pulseaudio-equalizer-ladspa

Hardcore Gentoo Linux user since 2004 :D
Back to top
View user's profile Send private message
jongeek
Tux's lil' helper
Tux's lil' helper


Joined: 13 Jul 2007
Posts: 135
Location: The Humid, Festering Swamps of Florida

PostPosted: Sun Jun 13, 2010 10:51 pm    Post subject: Reply with quote

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
View user's profile Send private message
Ion Silverbolt
Apprentice
Apprentice


Joined: 04 Nov 2004
Posts: 203

PostPosted: Sun Jun 13, 2010 10:56 pm    Post subject: Reply with quote

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
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54237
Location: 56N 3W

PostPosted: Mon Jun 14, 2010 6:10 pm    Post subject: Reply with quote

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
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54237
Location: 56N 3W

PostPosted: Mon Jun 14, 2010 6:17 pm    Post subject: Reply with quote

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
View user's profile Send private message
cach0rr0
Bodhisattva
Bodhisattva


Joined: 13 Nov 2008
Posts: 4123
Location: Houston, Republic of Texas

PostPosted: Mon Jun 14, 2010 7:00 pm    Post subject: Reply with quote

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
View user's profile Send private message
pilla
Bodhisattva
Bodhisattva


Joined: 07 Aug 2002
Posts: 7729
Location: Underworld

PostPosted: Thu Jun 17, 2010 10:52 am    Post subject: Reply with quote

Moved from Installing Gentoo to Portage & Programming.
_________________
"I'm just very selective about the reality I choose to accept." -- Calvin
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum