How can I run the command "pkg" from the host for the first time

Once the jail has been created, how can I programmatically run the command pkg inside it from the host and automatically answer y when prompted to bootstrap pkg for the first time?
 
env ASSUME_ALWAYS_YES=true pkg install -y ...

Code:
     -y, --yes  Assume yes when asked for confirmation before package
                installation.
pkg-install(8)
Code:
     ASSUME_ALWAYS_YES: boolean
                  When this option is enabled pkg(1) will automatically assume
                  "yes" to all questions which require user confirmation
                  before doing anything, as if the -y flag was specified.
                  Default: NO.
pkg.conf(5)
 
Back
Top