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

Re: show searched packages including versions

Greg Wooledge composed on 2018-01-03 16:26 (UTC-0500):

> 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?

> For starters, I strongly recommend you stop treating Debian like Ubuntu.
> You're not *supposed* to have a billion package repositories.                    

I don't do anything "like Buntu" intentionally on account of it. In fact:

	$ grep ntu /etc/hosts askubuntu.com ubuntu.com ubuntu.org

I don't like having *buntu/Canonical-speak polluting my browser history. :-D

> That said, you may be looking for "apt-cache policy".                 

"policy is meant to help debug issues relating to the preferences file. With no
arguments it will print out the priorities of each source. Otherwise it prints
out detailed information about the priority selection of the named package."

apt-cache policy linux-image and apt-cache showpkg produce output that in no way
resembles my OP request (searches substring from complete package name; one line
per available package, including its version, source repo optional).
"Wisdom is supreme; therefore get wisdom. Whatever else you
get, get wisdom." Proverbs 4:7 (New Living Translation)

 Team OS/2 ** Reg. Linux User #211409 ** a11y rocks!

Felix Miata  ***  http://fm.no-ip.com/

Reply to: