0

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?

1
  • What version did you just install ? For FreeBSD 10.0, the pkg bootstrapping should be (almost) automatic. For former releases, you just set your make.conf, get the "pkg" package first and doing the pkg2ng.
    – Ouki
    Commented Apr 14, 2014 at 16:56

2 Answers 2

0

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

0

This is perhaps the simplest solution:

# pkg bootstrap -y

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .