Search:  
Gentoo Wiki

TIP_Using_PORTAGE_BINHOST

This article is still a Stub. You can help Gentoo-Wiki by expanding it.

Contents

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.

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
Note: The options with the word only, and the associated shorthand, will fail if the desired package is not available from the BINHOST. In other words, portage will refuse to compile any source packages.


Troubleshooting

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
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
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

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.

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.

x86

Below is a list of BINHOSTs for x86 compatible systems.

i486

http://packages.ututo.org/i486

i686

http://tinderbox.dev.gentoo.org/default-linux/x86/All/
http://packages.ututo.org/i686/
http://mirrors.haslfree.com/portage-packages/i686-server/All/
ftp://ftp.sofagang.dk/portage-packages/i686-server/All/

Duron

http://packages.ututo.org/duron-athlon/

Pentium 3

http://ftp.fredan.se/gentoo/binaries/intel-pentium3/All/
http://gentoo.modulix.net/gentoo/grp/i686-pc-linux-gnu/pentium3/gnome/
http://packages.ututo.org/pentium3
http://mirrors.haslfree.com/portage-packages/i686-pentium3-server/All/
ftp://ftp.sofagang.dk/portage-packages/i686-pentium3-server/All/

Pentium 4

http://gentoo.modulix.net/gentoo/grp/i686-pc-linux-gnu/pentium4/no_xorg/
http://packages.ututo.org/pentium4/

Pentium 4m

http://gentoo.modulix.net/gentoo/grp/i686-pc-linux-gnu/pentium4m/gnome/

Athlon MP

http://packages.ututo.org/athlon-mp/

Athlon XP

http://ftp.fredan.se/gentoo/binaries/amd-athlonxp/All
http://packages.ututo.org/athlon-xp/

Athlon64

http://mirrors.haslfree.com/portage-packages/i686-athlon64-desktop/All/
ftp://ftp.sofagang.dk/portage-packages/i686-athlon64-desktop/All/

AMD64

K8

http://gentoo.modulix.net/gentoo/grp/x86_64-pc-linux-gnu/athlon64/gnome/
http://packages.ututo.org/k8/

VIA C7 - Server

http://gentoo.devangels.org/dedibox
http://gentoo.modulix.net/gentoo/grp/i686-pc-linux-gnu/c7/gnome/
http://gentoo.modulix.net/gentoo/grp/i686-pc-linux-gnu/c7/no_xorg/

SPARC

http://tinderbox.dev.gentoo.org/default-linux/sparc/sparc64/
Retrieved from "http://www.gentoo-wiki.info/TIP_Using_PORTAGE_BINHOST"

Last modified: Wed, 10 Sep 2008 06:15:00 +0000 Hits: 41,874