On just installed Freebsd need to initialize pkg
by hands. Otherwise pkg system not allowed.
How to init pkg
automatically by script? Maybe need install someone port? Or something else?
2 Answers
Just to record a solution, works on 9.3
env ASSUME_ALWAYS_YES=YES pkg bootstrap
source: https://forums.freebsd.org/threads/pkg-unattended-install.36183/#post-245486
make.conf
, get the "pkg" package first and doing thepkg2ng
.