Source: dpkg-awk Section: devel Priority: optional Maintainer: Jeroen Schot Standards-Version: 4.1.1 Build-Depends: debhelper (>= 9) Vcs-Git: git://git.debian.org/git/collab-maint/dpkg-awk.git Vcs-Browser: http://git.debian.org/?p=collab-maint/dpkg-awk.git Package: dpkg-awk Architecture: all Multi-Arch: foreign Depends: ${misc:Depends} Suggests: dctrl-tools 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.'