I want to find all packages installed from the
testing archive, so I try:
Code:
aptitude search '?installed ?archive(testing)'
As it turns out, this returns every package P that is installed and is included in testing, regardless of whether the installed package actually comes from testing. E.g.
bash will appear in the result list even if the installed version comes from
stable, because (some other version of) bash is also in
testing.
Another example: find all packages with a version that depends on two (or more) given packages, say
libcairo2 and
libqtcore4. Running
Code:
aptitude search '?depends(libqtcore4) ?depends(libcairo2)'
returns
vlc among the results, although vlc/stable doesn't depend on libqtcore4 and vlc/testing doesn't depend on libcairo2 (and sources.list contains only stable and testing).
Is this possible with aptitude (and how) ?