On 04/ 1/11 08:14 AM, Joe Higgins wrote:
I am trying out the pkg search command to return specific properties.
What are the list of properties that I can output with the pkg
search. For example can I output publisher, description ?
I try those and I keep getting empty columns ?
Appreciate the input
Joe Higgins
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss
Are you referring to what's allowed as an argument for -o?
Then the man page of pkg contains:
With -o, the columns of the results may be controlled. The
-o option may be specified multiple times, or multiple attributes
may be specified as the argument to one -o option by separating
the attribute names with commas. In addition to the "pseudo"
attributes outlined above, more are defined for search results:
search.match Corresponds to the string which matched the
search query.
search.match_type Corresponds to the attribute which
contained
the string that matched the search query.
And the bit that that segment references is this:
Several special "pseudo" attribute names are available for
convenience:
action.hash Corresponds to the value of the action's
hash, if the action carries a payload.
action.key Corresponds to the value of the action's
key attribute. For example, for a file
action, this is the path to the file.
action.name Corresponds to the name of the action.
For example, for a file action, this is
"file"
action.raw Corresponds to the complete contents of
the action as represented in the package
manifest. This corresponds to the
lines of output of 'pkg contents -m'.
pkg.fmri Corresponds to the full form FMRI of the
package containing the action, such as
pkg://extra/[email protected],5.11-0.101:
20090702T175410Z.
pkg.name Corresponds to the name of the package
containing the action, such as "SUNWcs".
pkg.publisher Corresponds to the publisher of the
the package containing the action, such
as "opensolaris.org".
pkg.shortfmri Corresponds to the short form FMRI of the
package containing the action, such as
pkg://opensolaris.org/[email protected].
So, looks like you should be using pkg.publisher, instead of publisher.
For the description, use pkg.description.
Hth,
Brock
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss