> Just wondering if anyone knows how to add a binary package (using
> pkgadd) into a directory other than /usr/local
> i have my disk partitioned so that most of the space if on
> /export/home, but when i use pkgadd it goes into /usr/local which
> fills up that partition of the disk and i have to copy it across,
> which somewhere along the line it is going to scr*w up.
> any help appreciated!!!
There are 2 options that come to mind:
pkgadd -a none <pgk_name>
The "-a none" says not to use an admin file (see admin(4) ), and will
prompt for everything, including BASEDIR.
The other is:
pkgadd -R /export/home <pkg_name>
This option uses /export/home as its "root". Note that using this option
will create things like /export/home/var/sadm/*, and if you need to use
pkginfo or pkgrm, you need to remember to use the -R option.
I prefer the second (-R), as it's a bit easier to maintain, but the
problem with both is that you may find things won't work as expected,
and you'll have to play around with you PATH, etc. unless you write
wrappers for everything.
But I'd look into using a bit of a different partitioning scheme. At the
very least, give /usr/local a new disk. If you have packages installed
in non-standard locations, you're setting yourself up for a maintenence
Real address krgray*at*verizon*dot*net