env ASSUME_ALWAYS_YES=true pkg install -y ... -y, --yes Assume yes when asked for confirmation before package
installation.
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.