list dpkg in ubuntu 16.04 code example Example: check installed packages apt-get apt list --installed