Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How to set up rsyncd.conf to make bin packages available?
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
turtles
Veteran
Veteran


Joined: 31 Dec 2004
Posts: 1655

PostPosted: Mon Oct 11, 2010 12:37 am    Post subject: How to set up rsyncd.conf to make bin packages available? Reply with quote

I have a directory full of bin packages how to I serve them locally with rsyncd as the up to date packages for some clients?

Background: I have some server(s) and laptop(s) I am thinking of tethering to a test/build laptop.
exact same arch and make.conf other than the X use flag.
My understanding is the X use flag does not decrease server performance so I am willing to accept the X use flag on the server rather than having to maintain 3 boxes with custom ebuilds and deal with all these g-cpan issues on each box.
I have set up rsyncd and a packages directory available over http.
How to I force the server(s) to just see the bin packages as the most up to date?
_________________
Donate to Gentoo
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21602

PostPosted: Mon Oct 11, 2010 4:00 am    Post subject: Reply with quote

Using rsync is not necessarily the easiest way to do this. If you can have near constant connectivity, an NFS export of the packages directory would be ideal. If you cannot use NFS, you could set up Portage to treat the master as a binhost and use emerge -g on the clients.

You can share the Portage tree, downloaded sources, and overlays, without necessarily sharing binary packages. Thus, if you want your servers to build without X, you can do that and still avoid maintaining multiple copies of the same private overlay.
Back to top
View user's profile Send private message
turtles
Veteran
Veteran


Joined: 31 Dec 2004
Posts: 1655

PostPosted: Mon Oct 11, 2010 5:38 am    Post subject: Reply with quote

Hu wrote:
Using rsync is not necessarily the easiest way to do this.


I would like to hold the servers back in versions of things until they are stable on the test/build laptop.
One is a "production" server.
So I would like emerge --sync on the server not to sync with a Gentoo mirror but just the build/test laptop. The other(s) are too slow to emerge anything.
Anyone else would run a binary nix distro on these but I would rather have familiar Gentoo base tools.
_________________
Donate to Gentoo
Back to top
View user's profile Send private message
Genone
Retired Dev
Retired Dev


Joined: 14 Mar 2003
Posts: 9523
Location: beyond the rim

PostPosted: Mon Oct 11, 2010 10:03 am    Post subject: Reply with quote

So you want your systems to only use binary packages and completely ignore what's available in the tree otherwise?
Back to top
View user's profile Send private message
turtles
Veteran
Veteran


Joined: 31 Dec 2004
Posts: 1655

PostPosted: Mon Oct 11, 2010 3:57 pm    Post subject: Reply with quote

Yes, a headless "production" server.
_________________
Donate to Gentoo
Back to top
View user's profile Send private message
Genone
Retired Dev
Retired Dev


Joined: 14 Mar 2003
Posts: 9523
Location: beyond the rim

PostPosted: Mon Oct 11, 2010 4:10 pm    Post subject: Reply with quote

Well, you could simply add EMERGE_DEFAULT_OPTS="-K" in make.conf on systems (excluding the building system of course) and share the binpkgs with the "clients" via NFS (or copy them, or setup a binhost). No need to mess around with rsync stuff.
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