Apt

Advanced package tool, or APT, is a free-software user interface that works with core libraries to handle the installation and removal of software on Debian, and Debian-based Linux distributions.

List
For instance, to list all the PHP packages installed apt list --installed | grep php