The following steps are executed when pkg is invoked to modify the software installed in the image:
Check the input for errors
Determine the system end-state
Run basic checks
Run the solver
Optimize the solver results
Evaluate actions
Download content
Execute actions
Process actuators
When executing these steps in the global zone, pkg can also operate on any non-global zones on the system. For example, pkg ensures that dependencies are correct between the global zone and non-global zones, and downloads content and executes actions as needed for non-global zones. Chapter 10, Handling Non-Global Zones discusses zones in detail.