Re: Make aptitude's limit function list installed packages from testing

2014-02-18 Thread Peter Schott

Thank you Tom, this works as expected.

I was expecting ~A to match far less, but on second thought there will 
be enough cases where the broader scope is essential.


All the best,
Peter

On 17.02.2014 22:04, Tom H wrote:

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?


aptitude search ~S~i ~Atesting'



--
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/53036691.2010...@ivao.de



Make aptitude's limit function list installed packages from testing

2014-02-17 Thread Peter Schott

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



Re: Make aptitude's limit function list installed packages from testing

2014-02-17 Thread Tom H
On Mon, Feb 17, 2014 at 2:48 PM, Peter Schott peter.sch...@ivao.de wrote:

 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?

aptitude search ~S~i ~Atesting'

(with thanks to Daniel Burrows for explaining ?narrow/~S on this
list a few years ago)


-- 
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/CAOdo=swkxs3tq3sqz4hfbabbiggw5d0m4lmg6u5mvr5qf+q...@mail.gmail.com