As you know, apt hands downloads to _apt unprivileged user. Pkg on FreeBSD downloads everything as root - not very security-oriented.
Is there a good reason for this to be so?
Is there a good reason for this to be so?
pkg update
# as regular user: fetch all pending upgrades (and new dependencies)
pkg fetch -u -d -U -y -o ~/pkgs
# as root: upgrade
pkg add -f ~/pkgs/..../*.pkg
Not sure I want some peasant account to touch my packages...which I then install.You CAN do this manually by:
I think it deserves to be this way with pkg by default.Code:pkg update # as regular user: fetch all pending upgrades (and new dependencies) pkg fetch -u -d -U -y -o ~/pkgs # as root: upgrade PKG_CACHEDIR=/home/you/pkgs pkg upgrade