None of these in my ~/.bashrc work:

export
TRUSTED_PKG_PATH=https://bruno%3AMyPassword%40gnuser.ddns.net/openbsd-bruno/6.4/packages/amd64

export
TRUSTED_PKG_PATH='https://bruno%3AMyPassword%40gnuser.ddns.net/openbsd-bruno/6.4/packages/amd64'

export
TRUSTED_PKG_PATH='https://bruno:[email protected]/openbsd-bruno/6.4/packages/amd64'

Running the above as commands in a terminal emulator as regular user
also doesn't work.

But this works:
$ su
Password:
# export
TRUSTED_PKG_PATH=https://bruno:[email protected]/openbsd-bruno/6.4/packages/amd64
# pkg_add myscripts
myscripts-1.0: ok

So TRUSTED_PKG_PATH must be exported (I should have figured, sorry) but,
counterintuitively, regular user can set PKG_PATH but only root can set
TRUSTED_PKG_PATH. If that's by design, I guess it's not a bug but it
should probably be mentioned in the pkg_add(1) man page.

Reply via email to