4ef01164_yum____Tutorials___LinuxPlanet__action
[command] dpkg-query --list "package*" [action] 
List packages matching the pattern given, and show whether they're installed (line begins ii) or not.
Linux Multi-Distro Package Manager Cheatsheet - Debian and Fedora (apt and yum) - Tutorials - LinuxPlanet
action