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

Axel Beckert abe at debian.org
Wed Jun 27 17:07:56 BST 2018


Hi Jidanni,

積丹尼 Dan Jacobson wrote:
> >>>>> "AB" == Axel Beckert <abe at debian.org> writes:
> AB> aptitude-newer-than-in-archive: aliased to aptitude -o "Aptitude::Pkg-Display-Limit=~i ?any-version(!~O.) !~U !~o"
> All I know is
> # aptitude -o Aptitude::Pkg-Display-Limit=~i search '?any-version(!~O.) !~U !~o'|head

You ignored the double quotes. Try it like this:

~ → aptitude search '~i ?any-version(!~O.) !~U !~o'
i A links              - Web browser running in text mode
i   links-dbgsym       - debug symbols for links
i A links2             - Web browser running in both graphics and text mode
i   links2-dbgsym      - debug symbols for links2
i A screen             - terminal multiplexer with VT100/ANSI terminal emulation
i   screen-dbgsym      - debug symbols for screen
i   zsh                - shell with lots of features
i A zsh-common         - architecture independent files for Zsh
i   zsh-dbgsym         - debug symbols for zsh
i   zsh-dev            - shell with lots of features (development files)
i A zsh-doc            - zsh documentation - info/HTML format
i   zsh-static         - shell with lots of features (static link)
i   zsh-static-dbgsym  - debug symbols for zsh-static

Might still have some false positives, compared to apt-show-versions:

~ → apt-show-versions | fgrep newer
links:amd64 2.15-1 newer than version in archive
links-dbgsym:amd64 2.15-1 newer than version in archive
links2:amd64 2.15-1 newer than version in archive
links2-dbgsym:amd64 2.15-1 newer than version in archive

~ → apt-cache policy screen zsh 
screen:
  Installed: 4.6.2-1+b1
  Candidate: 4.6.2-1+b1
  Version table:
     4.6.2-2~20180402224407.147 500
        500 https://jenkins.grml.org/debian screen/main amd64 Packages
     4.6.2-1+b1wtf1 250
        250 https://www.mirbsd.org/~tg/Debs sid/wtf amd64 Packages
 *** 4.6.2-1+b1 990
        990 https://debian.ethz.ch/debian sid/main amd64 Packages
        600 https://debian.ethz.ch/debian testing/main amd64 Packages
        100 /var/lib/dpkg/status
zsh:
  Installed: 5.5.1-1+b1
  Candidate: 5.5.1-1+b1
  Version table:
 *** 5.5.1-1+b1 990
        990 https://debian.ethz.ch/debian sid/main amd64 Packages
        600 https://debian.ethz.ch/debian testing/main amd64 Packages
        100 /var/lib/dpkg/status
     5.5.1-1+0~20180417015621.399~1.gbp0bb292 500
        500 https://jenkins.grml.org/debian zsh/main amd64 Packages

Will probably have to update and finetune these patterns.

> P.S., I hope your scripts will have non GUI versions too.

So far not, but you are currently changing that. :-)

		Regards, Axel
-- 
 ,''`.  |  Axel Beckert <abe at debian.org>, https://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



More information about the Aptitude-devel mailing list