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