On Sat, Feb 14, 2015 at 3:25 PM, kamaraju kusumanchi <raju.mailingli...@gmail.com> wrote: >> Alternatively there is apt-show-versions. >> >> $ apt-show-versions xterm >> xterm:amd64/testing 312-1 uptodate >> >> If there were a newer version available it would show "upgradeable 312-1" >> or some such newer version number instead of "uptodate". >> > > This works for me. I can use the backticks `` to execute a command and > grep on the output. >
apt-show-versions turned out to be perfect indeed. My end goal here was to get a list of uptodate, upgradeable packages based on a keyword. Turns out "apt-show-versions -r keyword" does just that. For example, % apt-show-versions -r mouse kmousetool:amd64/jessie 4:4.12.2-1 uptodate mousetweaks:amd64/jessie 3.12.0-1 uptodate xserver-xorg-input-mouse:amd64/jessie 1:1.9.0-1+b3 upgradeable to 1:1.9.1-1 xserver-xorg-input-vmmouse:amd64/jessie 1:13.0.0-1+b3 uptodate which searched all the installed package names for keyword mouse and listed their upgradeable status. thanks raju -- Kamaraju S Kusumanchi http://malayamaarutham.blogspot.com/ -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/CABpbYacj9JMKKwhKCwo=e6q2r-c_fglnnmtwygj-twa2v7d...@mail.gmail.com