how to get a list of installed packages code example Example: check installed packages apt-get apt list --installed