Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Multiple Architectures Share /usr/portage
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
st0rm
n00b
n00b


Joined: 17 Aug 2010
Posts: 8

PostPosted: Mon Apr 30, 2012 7:01 am    Post subject: Multiple Architectures Share /usr/portage Reply with quote

I plan to turn my families collection of Ubuntu and Windows machines to all run Gentoo to simplify upkeep and organize my machines. I would like to share /usr/portage from a single machine so that I can keep Portage updated without having to sync all the machines. Can I share that same /usr/portage with a 64 bit install? I would imagine so, because the compiler and machine settings are defined in /etc/make.conf, but I would just like to double check. Or would it just be simpler to run a mirror on my LAN and have the machines rsync to it? Your thoughts would be appreciated.
Back to top
View user's profile Send private message
jdhore
Retired Dev
Retired Dev


Joined: 13 Apr 2007
Posts: 106

PostPosted: Mon Apr 30, 2012 7:21 am    Post subject: Re: Multiple Architectures Share /usr/portage Reply with quote

st0rm wrote:
I plan to turn my families collection of Ubuntu and Windows machines to all run Gentoo to simplify upkeep and organize my machines. I would like to share /usr/portage from a single machine so that I can keep Portage updated without having to sync all the machines. Can I share that same /usr/portage with a 64 bit install? I would imagine so, because the compiler and machine settings are defined in /etc/make.conf, but I would just like to double check. Or would it just be simpler to run a mirror on my LAN and have the machines rsync to it? Your thoughts would be appreciated.


Any systems can share /usr/portage (if you have any binary packages, that MAY complicate things). I personally do it via a NFS share and have SYNC set correctly so I can sync the tree once from any of my systems and it'll be synced on all of them. It's quite nice.

It SHOULD work via a Samba share or SSHFS, but I personally prefer NFS. It's simpler. :P
Back to top
View user's profile Send private message
cwr
Veteran
Veteran


Joined: 17 Dec 2005
Posts: 1969

PostPosted: Mon Apr 30, 2012 7:44 am    Post subject: Reply with quote

It will work with Samba / CIFS ok; it's probably easier to export the whole
/usr/portage tree, rather than updating each system individually. Any
differences between machines can be resolved with a local overlay
in eg: /usr/local/portage.

Will
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21489

PostPosted: Tue May 01, 2012 2:07 am    Post subject: Reply with quote

You can handle packages by adjusting PKGDIR in the per-machine make.conf. At a minimum, you want to have one PKGDIR per ARCH. If you need to keep multiple configurations of a package within an architecture, you may want even more separate directories for PKGDIR. As a start, add PKGDIR="/usr/portage/packages/${ARCH}". This will make separate directories for x86, amd64, etc.
Back to top
View user's profile Send private message
DaggyStyle
Watchman
Watchman


Joined: 22 Mar 2006
Posts: 5909

PostPosted: Tue May 01, 2012 9:34 am    Post subject: Reply with quote

actually, I've done what jdhore suggested with NFS, it worked excellent.
I've even used binhost as my desktop and laptop was of the same cpu family.
_________________
Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein
Back to top
View user's profile Send private message
st0rm
n00b
n00b


Joined: 17 Aug 2010
Posts: 8

PostPosted: Tue May 08, 2012 7:38 pm    Post subject: Reply with quote

Sorry guys, finals week was a pain!

Thanks for all the input. I'll be using NFS to share /usr/portage. Thanks HU for the tips on the architectures as well!
Back to top
View user's profile Send private message
xaviermiller
Bodhisattva
Bodhisattva


Joined: 23 Jul 2004
Posts: 8706
Location: ~Brussels - Belgique

PostPosted: Tue May 08, 2012 7:43 pm    Post subject: Reply with quote

Hello,

To reduce disk space and bandwith, I squashed portage trees and shared the squash archive. Each computer has its own PKGDIR and DISTDIR for the moment.
_________________
Kind regards,
Xavier Miller
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