Package: dpkg-awk Version: 1.2 Architecture: all Maintainer: Jeroen Schot Installed-Size: 27 Depends: gawk Suggests: dctrl-tools Filename: ./all/dpkg-awk_1.2_all.deb Size: 8970 MD5sum: 57e04a286bcac4216d2f86536e775483 SHA1: 1d9df2b112d978259c0156453bccf10b3e3ff2cf SHA256: 0978405bcf1847ca937cfd1c3e07d8ea3de78d268e4a290b0ac64cc5ddc9424c Section: devel Priority: optional Description: Gawk script to parse /var/lib/dpkg/{status,available} and Packages This script can parse the dpkg database files. It can do regular expressions on the fields, and only get what you want. It can also be made to output certain fields. As an added bonus, there is an option to sort the output. . 'dpkg-awk "Status: .* installed$" -- Package Version Status' will output all installed packages, with only the listed fields. 'dpkg-awk -f=/var/lib/dpkg/available "Package:^[aA].*" -- Package Version' will output all available packages that start with the letter 'A.'