Thank you Mart, Ted and Stuart--I understood that installpath in pkg.conf provides a secure default, and PKG_PATH should probably be used for overrides only (if at all).
On Friday, 20 May 2016, 3:41, Mart Tõnso <xti...@gmail.com> wrote: There is an alternative to PKG_PATH env var: http://man.openbsd.org/OpenBSD-current/man5/pkg.conf.5 echo "installpath = http://your.favorite.mirror/" > /etc/pkg.conf .. and enjoy! Mart On Thu, May 19, 2016 at 4:32 AM, Ted Unangst <t...@tedunangst.com> wrote: > Igor Mironov wrote: >> The packages and ports' FAQ mentions that those using doas need to pass keepenv { PKG_PATH } in the config file. Is there a way to instruct doas to take PKG_PATH (or another variable) from the target account's environment (~/.profile)? > > No, but you can easily write a shell wrapper that sets things up and calls > pkg_add.