Using PKGSRC to install to non-standard LOCALBASE

Joerg Sonnenberger joerg at
Mon Jun 25 04:10:26 PDT 2007

On Sun, Jun 24, 2007 at 09:07:07AM -0700, Dave Hayes wrote:
> If I wanted to build Apache, for example, out of pkgsrc but I wanted
> it to be installed to a different prefix than LOCALBASE, how would I
> do that?

The recommented way is to bootstrap to the new prefix and use the bmake
from that. You can with some care alter the LOCALBASE variable together
with PKG_DBDIR to get a similiar effect, but IMO it is more likely to
hit problems like "which combination am I currently running with".


More information about the Users mailing list