The following example displays all packages that require you to accept the package license:
$ pkg contents -rt license -a must-accept=true -o license,pkg.name '*' LICENSE PKG.NAME BCL developer/java/jdk-7 BCL runtime/java/jre-7 LICENSE developer/java/jdk-6 LICENSE library/java/java-demo-6 LICENSE runtime/java/jre-6 lic_OTN consolidation/osnet/osnet-incorporation lic_OTN install-image/solaris-auto-install
See Displaying Package Licenses for information about how to display the license text.