[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Finding packages installed from experimental

On Tue, Feb 01, 2011 at 15:43:50 +0100, Jörg-Volker Peetz wrote:
> Spaces make no difference in the old aptitude search form and the new
> search form leads to the same result:
> on another mixed system I get
>   apt-show-versions | grep -c /experimental
> 35
>   aptitude search '~S ~i ~Aexperimental' | wc -l
> 27
>   aptitude search '~S~i~Aexperimental' | wc -l
> 27
>   aptitude search "?narrow(?archive(experimental),?installed)" | wc -l
> 27
> An example of a package not found by these aptitude search commands is
> (output from apt-show-versions)
> xserver-xorg-core/experimental *manually* upgradeable from 2:
> to 2:

I think the above aptitude searches do not list such packages because
the ~A string is empty for their installed version, which is no longer
in experimental.

I use

  aptitude search '~S~i!~Ae'

to find all my outdated packages that came from experimental. This will
also list the obsolete (~o) packages and it relies on the fact that all
archive names from stable to experimental contain at least one "e". You
can combine this with '!~o' to exclude the "standard" obsolete packages;
I use the above search string as a display limit in interactive mode,
where these two types of packages are listed in different categories
anyway ("upgradable" and "obsolete", respectively).

Regards,            |
          Florian   | http://www.florian-kulzer.eu

Reply to: