As explained in Ubuntu documentation / Repositories:
Software in Ubuntu's repository is divided into four categories or components - main, restricted, universe and multiverse.
Is there a simple method to list all the installed software together with the repository component (main, restricted, universe and multiverse) on an Ubuntu system?
Sample output:
...
apt main
apt-file universe
libnvidia-common-570 restricted
virtualbox multiverse
chrome-gnome-shell unknown
...