Hello all,

on a system I operate, Debian Squeeze 6.09 has been installed. At one point, it was necessary to install a more recent version of roundcube (web-mail client) out of the testing release. This of course caused some other packages to be updated to testing, too.

My objective is as follows:
Produce a list of installed packages whose presently installed version is from the testing archive.

The /etc/sources.list currently holds references to squeeze/updates (debian-security), main squeeze stable release, squeeze-updates, squeeze-backports; and to the testing release. Through apt-pinning the squeeze-backports was given a higher priority than testing, in order to avoid packages installed from backports to drift over to testing.

According to the Debian Reference, chapter 2.2.7. The aptitude regex formula [1], this aptitude filter seemed appropriate to me:
~i~Atesting

[1] https://www.debian.org/doc/manuals/debian-reference/ch02.en.html#_the_aptitude_regex_formula

However, this filter lists all installed packages, regardless of their presently installed source archive, who offer a version from testing, too. (Which are of course many, if not all.) I tried to use the filter ~V (for package version), but there is no common pattern to packages version I am aware of that would improve the search.

What is the correct filter to:
- list all installed packages coming from testing release;
- while *not* listing installed packages from other releases (e.g. stable) for which an alternative version from testing is available?

Can this be achieved?


With kind regards,
Peter


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/5302677c.7040...@ivao.de

Reply via email to