Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #173850

Re: list installed packages present only in stable

From Michael Lange <klappnase@freenet.de>
Newsgroups linux.debian.user
Subject Re: list installed packages present only in stable
Date 2016-10-25 20:00 +0200
Message-ID <sweb0-mN-7@gated-at.bofh.it> (permalink)
References <svBCG-bd-9@gated-at.bofh.it> <swbPQ-7oR-23@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Tue, 25 Oct 2016 11:24:00 -0400
Cindy-Sue Causey <butterflybytes@gmail.com> wrote:

> Oooohhh, shiny new toy that I just found because of you. This came via
> "man apt-show-versions":
> 
> To upgrade all packages in testing:
> 
>            apt-get install `apt-show-versions -u -b | grep testing`
> 
> Actually having some cognitive abilities functioning today, I further
> stepped out on a limb and just ran:
> 
> apt-cache show `apt-show-versions -u -b | grep sid`
> 
> It gave me some things back! One more test:
> 
> apt-cache show `apt-show-versions -u -b | grep jessie`
> 
> Returned this error:
> 
> E: No packages found
> 
> Woohoo!!! (Because it's giving varying answers based on query changes)
> 
> Yes, no, I understand that still might not quite be the answer sought
> after in this thread, BUT it *is* pulling based on [release versions].
> That means at least some of the developer work is already addressed if
> this in fact doesn't quite provide the desired results BUT would work
> with some flag tweaking.

Nice. After these suggestions I hastily put together a small python
script, that might come close to what Raju wants:

#!/usr/bin/python

from commands import getoutput

allpkgs = getoutput('apt-show-versions -b').splitlines()

jessie = [p for p in allpkgs if 'jessie' in p]
stretch = [p for p in allpkgs if 'stretch' in p]
sid = [p for p in allpkgs if 'sid' in p]

onlyjessie = [p for p in jessie if not p in (stretch+sid)]
for p in onlyjessie:
    print(p.split(':')[0])

Regards

Michael


.-.. .. ...- .   .-.. --- -. --.   .- -. -..   .--. .-. --- ... .--. . .-.

We'll pivot at warp 2 and bring all tubes to bear, Mr. Sulu!

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

list installed packages present only in stable kamaraju kusumanchi <raju.mailinglists@gmail.com> - 2016-10-24 02:50 +0200
  Re: list installed packages present only in stable Cindy-Sue Causey <butterflybytes@gmail.com> - 2016-10-25 17:30 +0200
    Re: list installed packages present only in stable Michael Lange <klappnase@freenet.de> - 2016-10-25 20:00 +0200
      Re: list installed packages present only in stable kamaraju kusumanchi <raju.mailinglists@gmail.com> - 2016-10-26 05:40 +0200
        Re: list installed packages present only in stable Michael Lange <klappnase@freenet.de> - 2016-10-26 11:20 +0200
          Re: list installed packages present only in stable kamaraju kusumanchi <raju.mailinglists@gmail.com> - 2016-10-26 14:20 +0200
            Re: list installed packages present only in stable Frank <zuiderduin@gmx.com> - 2016-10-26 18:00 +0200
            Re: list installed packages present only in stable Michael Lange <klappnase@freenet.de> - 2016-10-26 18:40 +0200
  Re: list installed packages present only in stable Rick Thomas <rbthomas@pobox.com> - 2016-10-29 18:40 +0200
  Re: list installed packages present only in stable kamaraju kusumanchi <raju.mailinglists@gmail.com> - 2016-11-01 07:20 +0100
  Re: list installed packages present only in stable Jonathan Dowland <jmtd@debian.org> - 2016-11-02 11:20 +0100
    Re: list installed packages present only in stable kamaraju kusumanchi <raju.mailinglists@gmail.com> - 2016-11-03 03:20 +0100
      Re: list installed packages present only in stable Jonathan Dowland <jmtd@debian.org> - 2016-11-03 14:10 +0100
        Re: list installed packages present only in stable kamaraju kusumanchi <raju.mailinglists@gmail.com> - 2016-11-04 02:10 +0100
          Re: list installed packages present only in stable Jörg-Volker Peetz <jvpeetz@web.de> - 2016-11-04 14:50 +0100
            Re: list installed packages present only in stable Jörg-Volker Peetz <jvpeetz@web.de> - 2016-11-04 17:20 +0100
              Re: list installed packages present only in stable Jörg-Volker Peetz <jvpeetz@web.de> - 2016-11-04 19:00 +0100
  Re: list installed packages present only in stable steve <dlist@bluewin.ch> - 2016-11-02 11:50 +0100
    Re: list installed packages present only in stable kamaraju kusumanchi <raju.mailinglists@gmail.com> - 2016-11-03 03:30 +0100
      Re: list installed packages present only in stable steve <dlist@bluewin.ch> - 2016-11-03 08:40 +0100
        Re: list installed packages present only in stable Mark Fletcher <mark27q1@gmail.com> - 2016-11-03 10:50 +0100
          Re: list installed packages present only in stable steve <dlist@bluewin.ch> - 2016-11-03 11:00 +0100
            Re: list installed packages present only in stable <tomas@tuxteam.de> - 2016-11-03 12:50 +0100
              Re: list installed packages present only in stable <tomas@tuxteam.de> - 2016-11-03 14:00 +0100
                Re: list installed packages present only in stable steve <dlist@bluewin.ch> - 2016-11-03 14:30 +0100
                Re: list installed packages present only in stable <tomas@tuxteam.de> - 2016-11-03 14:50 +0100
                Re: list installed packages present only in stable steve <dlist@bluewin.ch> - 2016-11-03 15:10 +0100
                Re: list installed packages present only in stable David Wright <deblis@lionunicorn.co.uk> - 2016-11-03 15:20 +0100
                Re: list installed packages present only in stable steve <dlist@bluewin.ch> - 2016-11-03 15:50 +0100
                Re: list installed packages present only in stable <tomas@tuxteam.de> - 2016-11-03 16:40 +0100
              Re: list installed packages present only in stable steve <dlist@bluewin.ch> - 2016-11-03 14:00 +0100
            Re: list installed packages present only in stable Mark Fletcher <mark27q1@gmail.com> - 2016-11-03 23:50 +0100

csiph-web