can pkg be used to install in /opt?

Matthew Seaman matthew at
Wed Jan 29 19:27:13 UTC 2014

On 29/01/2014 18:33, Kostas Oikonomou wrote:
> The packages math/goblin and math/glpk can't both be installed in 9.2,
> due to a conflict on a shared library they both try to install. 
> Is it possible to use pkg to install a package in /opt, thus avoiding
> the shared library problem in this case?
> I can't see how to do this with pkg.  The old pkg_add had this ability.

Only if you have packages specially compiled to install in /opt.  Or in
other words, there's no way to install to a substitute prefix --
although you can install into a jail or chroot, but that's not quite the
same thing.



Dr Matthew J Seaman MA, D.Phil.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 1036 bytes
Desc: OpenPGP digital signature
URL: <>

More information about the freebsd-pkg mailing list