Install a package and all its dependencies without a confirmation prompt with FreeBSD pkg
Try
pkg install -y webmin nginx nano
Check man pkg-install
:
SYNOPSIS
pkg install [-AfgIinFqRUxy] [-r reponame] pkg-origin ...
...
-y Assume yes when asked for confirmation before package installation.
Note the y in [-AfgIinFqRUxy]!
Alternatively you can use yes
command.
yes | pkg install webmin nginx nano