Similar to dpkg list and can be used with flags like –installed or –upgradable.
apt list apt list | more apt list | grep foo apt list | grep php7-
apt list nginx apt list 'php7*'