View previous topic :: View next topic |
Author |
Message |
st0rm n00b
Joined: 17 Aug 2010 Posts: 8
|
Posted: Mon Apr 30, 2012 7:01 am Post subject: Multiple Architectures Share /usr/portage |
|
|
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 |
|
|
jdhore Retired Dev
Joined: 13 Apr 2007 Posts: 106
|
Posted: Mon Apr 30, 2012 7:21 am Post subject: Re: Multiple Architectures Share /usr/portage |
|
|
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. |
|
Back to top |
|
|
cwr Veteran
Joined: 17 Dec 2005 Posts: 1969
|
Posted: Mon Apr 30, 2012 7:44 am Post subject: |
|
|
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 |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21489
|
Posted: Tue May 01, 2012 2:07 am Post subject: |
|
|
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 |
|
|
DaggyStyle Watchman
Joined: 22 Mar 2006 Posts: 5909
|
Posted: Tue May 01, 2012 9:34 am Post subject: |
|
|
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 |
|
|
st0rm n00b
Joined: 17 Aug 2010 Posts: 8
|
Posted: Tue May 08, 2012 7:38 pm Post subject: |
|
|
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 |
|
|
xaviermiller Bodhisattva
Joined: 23 Jul 2004 Posts: 8706 Location: ~Brussels - Belgique
|
Posted: Tue May 08, 2012 7:43 pm Post subject: |
|
|
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 |
|
|
|