David Fox wrote: > On 10/24/07, David Clymer <[EMAIL PROTECTED]> wrote: >> On Tue, 2007-10-23 at 11:28 +0200, Jörg-Volker Peetz wrote: > >>> aptitude can do that: >>> >>> aptitude -F '%p %t' search '~i' > > That produces (imho) misleading output. It is telling me that I have > many more packages that come from unstable then I believe I should > have on a testing system. I have set pinning to prefer testing over > stable, but I've also installed a few packages from unstable - mostly > those that relate to X and nvidia stuff that isn't available in > testing (specifically, nvidia-kernel-source && nvidia-glx). > > Yet, for instance, it says 'tar' comes from unstable. > > apt-cache policy says: > > tar: > Installed: 1.18-2 > Candidate: 1.18-2 > Version table: > 1.19-1 0 > 600 http://ftp.debian.org sid/main Packages > *** 1.18-2 0 > 990 http://ftp.debian.org testing/main Packages > 100 /var/lib/dpkg/status > > So, what is that aptitude command telling me? > >
In the manual the description of the '%t' says "The archive in which the package is found." And aptitude seems to list the archive with the lowest priority. So my advice about the aptitude command is indeed misleading since aptitude does not tell from which archive the installed version of the package was taken. Thanks for correcting me. Therefore the script of David Clymer is the only working solution. -- Regards, Jörg-Volker. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]