On Mon, 10 Feb 2003 10:32:44 -0600 Jeff Hahn wrote: > How do I get a list of packages including what distribution they came > from??? > > Something like dpkg -l saying "perl-5.8.0/unstable"
I've done just that a few days ago. Made my own script, don't know if there's any debian tool available for that purpose. Get a list of all installed packages in your system together with their versions (COLUMNS=150 dpkg -l '*' | grep ^.i, then parse suitably). Then grep the *Packages files under /var/lib/apt/lists. Their names will include the string "_dists_<DIST>_", where <DIST> is the distribution. Each package will either be named in one of the files or not, in which case it might have been upgraded, conflicted away or just plain removed. Sample output of my script: (unknown): 59 packages (includes experimental dist.) stable: 723 packages testing: 807 packages unstable: 87 packages unstable fetchmail 6.2.0-3 [snip] unstable xpdf-utils 2.01-3 testing aalib1 1.4p5-17 [snip] testing zsh-doc 4.0.6-13 stable 9wm 1.2-5 [snip] stable zip 2.30-5 ??? apt-src 0.20 ---> 0.21(unstable) [snip] ??? kfilereplace 0.6.1-8 [snip] ??? w3m-ssl 0.3.1-3 ===> w3m(0.3.2.2+0.4rc1-1/unstable) ---> means package was upgraded. ===> means package was removed because superceeded by another. no arrows mean package was removed. Hope that helps. -- Carlos Sousa http://vbc.dyndns.org/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]