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: 8904 MD5sum: 6190b60a536d66fdeb50cc3b24c93319 SHA1: f48504fd2f4b88e552ad764d671fb47c4cbb1c4b SHA256: a5a52f369add3d061500e46da49862105a450e15f990dcd67ad49378238ea4b6 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.'