gabriel rosenkoetter on Sat, 8 Jun 2002 13:53:07 -0400


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

[PLUG] NetBSD pkg usage...


Turns out some of Samantha's problems with NetBSD pkgsrc are things 
that I (and just about everyone else in the NetBSD world) take for  
granted. Here's a big one that feels obvious once you know it but 
will *really* screw you if you don't (and is not, in fact, obvious
in any way :^>):
  
Packages are, by default, installed under /usr/pkg ({bin,lib,share}).
That means you'll need at least /usr/pkg/bin, and maybe also 
.../sbin and .../libexec in your PATH.
  
You can control where packages get installed (say you want them in  
/usr/local, or maybe in /pkg/<arch name> because you've got an NFS  
share which a variety of architectures can see, and the system's 
PATH on those machines know to pick the right directory from there) 
by setting the value of LOCALBASE in /etc/mk.conf (no, it probably  
doesn't exist on a clean installed system).
  
Those just starting out with NetBSD would do well to read packages(7)
and mk.conf(5). (We do have documentation! I swear!)

Feel free to bug me with NetBSD-specific stuff privately if you
don't think it's appropriate to this mailing list (though I'd argue
that it's far from taking over, and less distant from the L in PLUG
than some things that we spend a lot of time talking about). It'd
probably also be a good idea for you to subscribe to the port
mailing list apprpropiate to your architecture. (Like, say,
port-i386@netbsd.org.)

-- 
gabriel rosenkoetter
gr@eclipsed.net

Attachment: pgpAqnn3jOUiK.pgp
Description: PGP signature