In Ubuntu 14.04 and above versions to list all installed packages in Ubuntu use:
apt list --installed
In the older versions of Ubuntu you can use any one of the below commands:
dpkg -l
To get list of selected packages installed:
dpkg --get-selections | grep -v deinstall
Also Read: