To add software packages after you have installed the operating system, use the pkg commands as described in the pkg(1) man page. You can also use the pkg command to find the names of packages you might want to install, get more information about the packages, and install the packages.
As a best practice, use the pkg install -nv command first. The command simulates an installation but no packages are actually installed. You can then preview the output to identify specific packages you want to install. To selectively install packages, use the following command syntax:
# pkg install package-name
To install packages to a different boot environment, use the following command:
# pkg install --require-new-be --be-name new-be-name install package-name