TIP Using PORTAGE BINHOST
From Gentoo Linux Wiki
| Terminals / Shells • Network • X Window System • Portage • System • Filesystems • Kernel • Other |
Contents |
[edit] Introduction
This article explains how to use a portage BINHOST to reduce compile times. If you would like to host your own server please see the BINHOST Setup HOWTO.
The portage BINHOST system is a valuable utility for deployment of Gentoo in a multi-system environment. Clearly this is not the only area where a BINHOST is useful, in fact it may be used quite effectively by a normal user who does not want to take advantage of the portage compilation options.
- Some of the key factors drawing users to Gentoo include
-
- Simplicity and utility of portage.
- Extremely helpful and active community.
- Large amounts of documentation.
- These are offset by several factors
-
- Long Gentoo installation process. (It may take days to compile a full desktop environment.)
- Poor default Gentoo performance options.
- Role of BINHOSTS
- These concerns may be partly alleviated by making use of public Gentoo binary package hosts. Compilation time is clearly reduced if not removed, meanwhile package optimization can be done by the more experienced users hosting the server. If you know of or host a public BINHOST server, please feel free to add it to the list below.
[edit] Using public BINHOST servers
To make use of a BINHOST you must configure the remote host from which to retrieve as well as the location in which to save these packages.
Add or replace the required configuration directives in make.conf:
| File: /etc/make.conf |
PORTAGE_BINHOST="http://gentoo.repository.tld/path/to/BINHOST" PKGDIR="/path/to/alternative/package/directory" |
To archive packages to $PKGDIR:
| Code: Shell |
emerge --getbinpkg --fetchonly ${PACKAGE}
# or
emerge --getbinpkgonly --fetchonly ${PACKAGE}Note
|
To install the packages from $PKGDIR:
| Code: Shell |
emerge --usepkg ${PACKAGE}
# or
emerge --usepkgonly ${PACKAGE}Note
|
To install and archive packages in PKGDIR:
| Code: Shell |
emerge --getbinpkg --usepkg ${PACKAGE}
# or
emerge --getbinpkgonly --usepkgonly ${PACKAGE}Note
|
[edit] Troubleshooting
- Python HTMLParser exception
- Apache on Debian Woody may cause problems with PORTAGE_BINHOST (python's HTMLParser throws an exception).
- -jason pepas
- The Debian Woody issue appears to be caused by a comma in the META tag (inserted by the mod_autoindex Apache module). I'm sure you could recompile the module after omitting the comma, or live dangerously and just hexedit it out of /usr/lib/apache/1.3/mod_autoindex.so
- - madsara
- Use Flags
- Apparently, if emerge locates a binary pkg of the right version-release, it will install it, regardless of your use flag. So, it seems that the use flags are heeded at build time but not at install time. See the discussion at http://forums.gentoo.org/viewtopic-t-502955-highlight-binhost.html . I imagine this can mess things up quite well, unless you adjust your use flags to match those of the pkgs in the BINHOST repository - Originally by harpette
- use ftp instead of http/s
- I only got this working, when I am using ftp instead of http/s.
Also see http://forums.gentoo.org/viewtopic-p-4984007.html?sid=6b1f140c881bd167e493b33de7939202
[edit] List of public BINHOST servers
Feel free to add your server to this list. If a server has been offline or unreachable for a significant amount of time please label it as DOWN. Servers that are now offline or are unreachable are archived for historic purposes. If any of them return please remove the DOWN label.
[edit] Security Warning
The following links are not pointing to official Gentoo binhosts. Gentoo does not provide public binhosts at all. Usage of binary packages provided by the listed binhosts may present security issues.
[edit] x86
Below is a list of BINHOSTs for x86 compatible systems.
[edit] i486
- Ututo
[edit] i686
- Gentoo developers grp tinderbox
- Ututo
- haslfree - generic i686 server
- http://mirrors.haslfree.com/portage-packages/i686-server/All/
- ftp://ftp.sofagang.dk/portage-packages/i686-server/All/
[edit] Duron
- Ututo
[edit] Pentium 3
- Fredan - DOWN
- Modulix (compiled with Gnome support)
- Ututo
- haslfree - pentium3 server
- http://mirrors.haslfree.com/portage-packages/i686-pentium3-server/All/
- ftp://ftp.sofagang.dk/portage-packages/i686-pentium3-server/All/
[edit] Pentium 4
- Modulix (compiled without Xorg support) - DOWN
- Ututo
[edit] Pentium 4m
- Modulix (compiled with Gnome support)
[edit] Athlon MP
- Ututo
[edit] Athlon XP
- Fredan - DOWN
- Ututo
[edit] Athlon64
- haslfree - Athlon64 desktop, 32 bit
- http://mirrors.haslfree.com/portage-packages/i686-athlon64-desktop/All/
- ftp://ftp.sofagang.dk/portage-packages/i686-athlon64-desktop/All/
[edit] AMD64
[edit] K8
- Modulix (compiled with Gnome support) - DOWN
- Ututo
[edit] VIA C7 - Server
- devangels (hardened and selinux)
- Modulix (compiled with Gnome support)
- Modulix (compiled without Xorg support)
[edit] SPARC
- Gentoo developers grp tinderbox
