Control: reopen -1
Control: tag -1 - squeeze

Hi,

Debian Bug Tracking System wrote:
> Package: debian-goodies
> Version: 0.53
> Severity: wishlist
> Tags: squeeze
> 
> It would be nice to have some kind of helper which wades thru the installed
> packages on a system and checks if they can be re-downloaded.

This bug was tagged wrongly as there never was and still is no such
tool in debian-goodies. Hence declaring that it is only present in
squeeze does not make sense. Hence reopening.

I though think the package list in question can be generate with some
"aptitude search" plus some options. The following commands I use
occassionally already come close:

CLI: aptitude search '~i ?any-version(!~O.) !~U !~o'
TUI: aptitude -o 'Aptitude::Pkg-Display-Limit=~i ?any-version(!~O.) !~U !~o'

Both list all packages which are installed but which

* are installed in a version which has no origin (usually the download
  server), and
* are not upgradable, and
* are not obsolete, i.e. downloadable in some other version.

With the proper logical combination of these properties, the requested
feature should be doable. By using the -F option the result can be
formatted accordingly, e.g.

$ aptitude -F'%c%a%M %p %t %v %V' search '~i ?any-version(!~O.) !~U'

are all currently installed packages which are not downloadable in
their installed version (or not downloadable at all). 

"%t" is only expanded for downloadable packages, so is only helpful if
the search pattern is wider, e.g.

$ aptitude -F'%c%a%M %p %t %v %V' search '~i'

                Regards, Axel
-- 
 ,''`.  |  Axel Beckert <[email protected]>, http://people.debian.org/~abe/
: :' :  |  Debian Developer, ftp.ch.debian.org Admin
`. `'   |  4096R: 2517 B724 C5F6 CA99 5329  6E61 2FF9 CD59 6126 16B5
  `-    |  1024D: F067 EA27 26B9 C3FC 1486  202E C09E 1D89 9593 0EDE

Reply via email to