Find everything:
$ dpkg --get-selections
Find just those that contain php in the name via grep:
$ dpkg --get-selections | grep php
Find everything:
$ dpkg --get-selections
Find just those that contain php in the name via grep:
$ dpkg --get-selections | grep php