[OpenIndiana-discuss] List of installed pkgs begining with pkg:/
Harry Putnam
reader at newsguy.com
Tue Nov 1 16:45:57 UTC 2011
Oscar del Rio <delrio at mie.utoronto.ca> writes:
> On 11/ 1/11 09:33 AM, Harry Putnam wrote:
>> How can I get a list of installed pkgs that begin with pkg:/[...]
>>
>> I thought maybe something like:
>>
>> pkg list |awk '{print $2}' |uniq sort -o uniq_installed
>>
>
> How about 'pkg info'?
>
> pkg info | awk '/pkg:/ { print $2 }'
Nice... yes this looks good.
More information about the OpenIndiana-discuss
mailing list