A new pkg(1) subcommand, exact-install, enables administrators to easily revert to a baseline installation. This capability is useful when you need to put a system into a baseline state without having to manually uninstall a large number of packages. The result of the pkg exact-install command is an image with only the specified packages and their dependencies installed. Any currently installed packages that are not specified on the pkg exact-install command line, and are not a dependency of the specified packages are removed.
For more information, see Reinstalling an Image in Adding and Updating Software in Oracle Solaris 11.2 .