Solaris 11: how to get pkg properties in machine readable format

view full story

http://unix.stackexchange.com – I would like to be able to extract (from within a shell script) the attributes of an IPS package. Basically I'm after exact same information as is listed with the pkg info command but unfortunately this command list information in a format which is not very friendly to read from within a script. Example below: $ pkg info archiver/gnu-tar Name: archiver/gnu-tar Summary: GNU version of the tar archiving utility Description: Tar is a program for packaging a set of files as a single archive in tar format. Category: Development/GNU State: Install (HowTos)