how to list the packages in ubuntu code example
Example 1: check installed packages apt-get
apt list --installed
Example 2: how to check installed apps in ubuntu
apt list --installed | grep program_name
apt list --installed
apt list --installed | grep program_name