分别列出受限、多元宇宙中的软件

Ste*_*ria 13 repository

是否有 apt、apt-get 或 dpkg 命令或选项使我能够将已安装的软件包列出到它们分别安装的主、受限、Universe 和 multiverse 存储库中?

如果没有,是否有另一种方法可以根据存储库单独列出包?

ste*_*ver 12

你可以做后者aptitude- 例如

aptitude search '?narrow(?installed, ?section(universe))'
Run Code Online (Sandbox Code Playgroud)

或者

aptitude search '?narrow(?installed, ?section(universe/math))'
Run Code Online (Sandbox Code Playgroud)

前任。

$ 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
Run Code Online (Sandbox Code Playgroud)