Search Installed Packages/Apps on Ubuntu Linux

SEARCH
dpkg --get-selections | grep php
replace php with your package/app

LIST ALL
dpkg --get-selections

REFERENCE