[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: show searched packages including versions



On Wed, Jan 03, 2018 at 04:23:06PM -0500, Roberto C. Sánchez wrote:
> On Wed, Jan 03, 2018 at 04:15:51PM -0500, Felix Miata wrote:
> >   mc was bad example. Currently booted is Jessie. Installed kernels are 3.16 and
> > 4.8. What command shows me the newest available linux-image version available
> > anywhere that's been configured in sources.list?
> 
> Assuming you are on an amd64 system, then this:
> 
> apt-cache show linux-image-amd64
> 
> The package 'linux-image-amd64' is a meta package which always depend on
> the latest available linux-image-* package for the architecture (in this
> case, amd64).
> 
> If you are interested in knowing which repository in your sources.list
> has that package available, then you want this:
> 
> apt-cache policy linux-image-amd64
> 
You might also have a look at these commands:

root@debian:~# wajig describe linux-image-amd64
Package                  Description
========================-===================================================
linux-image-amd64        Linux for 64-bit PCs (meta-package)


root@debian:~# wajig statusmatch linux-image
Package                 Installed       Previous        Now             State
=======================-===============-===============-===============-=====
linux-image-4.14.0-2-amd64      N/A             N/A             4.14.7-1
linux-image-4.14.0-2-amd64-dbg  N/A             N/A             4.14.7-1
linux-image-4.14.0-2-rt-amd64   N/A             N/A             4.14.7-1
linux-image-4.14.0-2-rt-amd64-dbg       N/A             N/A             4.14.7-1
linux-image-4.9.0-4-grsec-amd64 N/A             N/A             4.9.65-2+grsecunoff1
linux-image-amd64       N/A             N/A             4.14+88
linux-image-amd64-dbg   N/A             N/A             4.14+88
linux-image-grsec-amd64 N/A             N/A             13
linux-image-rt-amd64    N/A             N/A             4.14+88
linux-image-rt-amd64-dbg        N/A             N/A             4.14+88


If you look at the second command, it contains a substring that wajig
uses to match from the list of available package names.

It would like be very simple to modify wajig to provide the additional
bits of information you want.  It is written in Python and the code is
clean and easy to ready.

Regards,

-Roberto

-- 
Roberto C. Sánchez


Reply to: