Hi I think the OP expects a different semantics from ?archive. I stumpled upon the same problem.
From [1]:
---8<---
?archive(archive), ~Aarchive
Matches package versions which are available from an archive that
matches the regular expression archive. For instance,
“?archive(testing)” matches any package available from the testing
archive.
--->8---
So
$ aptitude search '?and(?installed,?archive("experimental"))'
means "all packages, which are installed and which have a version in
experimental - whether installed or not", which explains the results of
the OP.
Still, I would apprechiate if queries like "all installed packages from
experimental" would be possible. So I would say this bug report should
become a feature request.
Here is a workaround:
$ apt-show-versions | awk -F\/ '/.*\/experimental / {print $1}
regards
Alex
[1]
http://algebraicthunk.net/~dburrows/projects/aptitude/doc/en/ch02s03s05.html
signature.asc
Description: Digital signature

