Ubuntu – List software from restricted, multiverse separately

repository

Is there an apt, apt-get or dpkg command or option that will enable me to list the installed packages into the main, restricted, universe and multiverse repositories they were installed from separately?

If not is there another way to list packages separately according to repositories?

Best Answer

You can do the latter with aptitude - for example

aptitude search '?narrow(?installed, ?section(universe))'

or

aptitude search '?narrow(?installed, ?section(universe/math))'

Ex.

$ aptitude search '?narrow(?installed, ?section(multiverse))'
i   ttf-mscorefonts-installer                                               - Installer for Microsoft TrueType core fonts                                      
i   ubuntu-restricted-addons                                                - Commonly used restricted packages for Ubuntu