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: 7920 MD5sum: ed8fe2eb42498333545fdf0346811e1e SHA1: 0c8fcbcecd236d0ec6397fe3fe054cff71ea336f SHA256: 03c747bab7e2a37a7d51b47db954446f59de8822fcb1a0076322acd826df1694 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.'