[Aptitude-devel] Bug#902536: Document how to detect 'newer than in the archive' installed packages

積丹尼 Dan Jacobson jidanni at jidanni.org
Wed Jun 27 15:09:40 BST 2018

Package: aptitude
Version: 0.8.10-9

Aptitude's "~o" search string is not good enough.

It doesn't catch cases like in Bug #902503.

For such cases one needs

# aptitude -F '%t %p' search ~i!~o|perl -nwle 'print if s/^now //;'

That's the only way one is going to find them.

# aptitude -F '%t %p' search ~i!~o|perl -nwle 'print if s/^now //;'|xargs apt-cache policy
  Installed: 61.0~b8-1
  Candidate: 61.0~b8-1
  Version table:
 *** 61.0~b8-1 100
        100 /var/lib/dpkg/status
     60.0.2-2 500
        500 http://free.nchc.org.tw/debian unstable/main amd64 Packages
  Installed: 3.3~20160224-1
  Candidate: 3.3~20160224-1
  Version table:
 *** 3.3~20160224-1 100
        100 /var/lib/dpkg/status
     3.2.1-8 500
        500 http://free.nchc.org.tw/debian unstable/main amd64 Packages

So aptitude needs a new ~ search term, like ~o, but for packages in the
$ apt-show-versions | grep newer
firefox:amd64 61.0~b8-1 newer than version in archive
libffi6:amd64 3.3~20160224-1 newer than version in archive

Or at least add my example to the aptitude manual. I'm sure one would
want to detect such packages.

>>>>> "MB" == Michael Biebl <biebl at debian.org> writes:

MB> You have an outdated libffi6 version installed from experimental.
MB> Please update to the version from sid.
MB> This is a duplicate of
MB> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=902411

More information about the Aptitude-devel mailing list