listing installed packages by source
Is there an easy way to list all installed packages by source (main,
contrib, non-free, unknown ,,,)?
I am doing it with a dirty shell script using grep-status (to get the
list of installed package) and apt-cache to get the Filename field
value, but it's very slow.
Is there a perl api for apt? (My understanding is that dpkg knows
nothing about the origine of the file)
Basically I want to know which non-free packages are installed on a
given computer but knowing which packages are not from the main archive
is interesting too.
Christophe Barbé <firstname.lastname@example.org>
GnuPG FingerPrint: E0F6 FADF 2A5C F072 6AF8 F67A 8F45 2F1E D72C B41E
There's no sense in being precise when you don't even know what you're
talking about. -- John von Neumann