apt list --installed
apt-cache search package
#check if a given package is installed apt list --installed | grep <package/keyword>