dpkg-query cannot be used for precise, support for virtual output binary:Summary and db:Status-Abbrev fields is only available since dpkg 1.16.2 (See https://launchpad.net/ubuntu/+source/dpkg/1.16.3ubuntu1).
Only an hybrid version could work for all releases, the current parser for precise using 'dpkg -l' and a new one using dpkg-query for quantal+.
dpkg-query cannot be used for precise, support for virtual output binary:Summary and db:Status-Abbrev fields is only available since dpkg 1.16.2 (See https:/ /launchpad. net/ubuntu/ +source/ dpkg/1. 16.3ubuntu1).
Only an hybrid version could work for all releases, the current parser for precise using 'dpkg -l' and a new one using dpkg-query for quantal+.