how to check which apt packages are installed code example Example: how to find installed packages in ubuntu apt list --installed