zypper - getting the more recent or the best package

Hello.

I was been asked to install a more recent kernel.
On my machine only “3.16.7 - 7-desktop” is present.
This kernel is available (repos named as openSUSE - 13.2 - Update) from
http://download.openSUSE.org/update/13.2
I have a personal repository named “zypper_local” on my machine. I have downloaded
my current kernel “3.16.7 - 7-desktop” and the new kernel that I am asked to install
“3.19.0 - 2.1.g1133f88”. This kernel being available (repos named as openSUSE - 13.2 - Kernel_stable_standard) from http://download.opensuse.org/repositories/Kernel: / stable/standard
The following files are therefore in “zypper_local”

kernel-default - 3.16.7 - 7.1.x86_64.rpm
kernel-default - 3.19.0 - 2.1.g1133f88.x86_64.rpm
kernel-default-devel - 3.16.7 - 7.1.x86_64.rpm
kernel-default-devel - 3.19.0 - 2.1.g1133f88.x86_64.rpm
kernel-syms - 3.16.7 - 7.1.x86_64.rpm
kernel-syms - 3.19.0 - 2.1.g1133f88.x86_64.rpm
kernel-xen-devel - 3.16.7 - 7.1.x86_64.rpm
kernel-xen-devel - 3.19.0 - 2.1.g1133f88.x86_64.rpm

the following command:

zypper info r zypper_local ' kernel *'

return

kernel-default - 3.19.0 - 2.1.g1133f88.x86_64.rpm
kernel-default-devel - 3.16.7 - 7.1.x86_64.rpm
kernel-default-devel - 3.19.0 - 2.1.g1133f88.x86_64.rpm
kernel-syms - 3.16.7 - 7.1.x86_64.rpm
kernel-syms - 3.19.0 - 2.1.g1133f88.x86_64.rpm
kernel-xen-devel - 3.16.7 - 7.1.x86_64.rpm
kernel-xen-devel - 3.19.0 - 2.1.g1133f88.x86_64.rpm

Returns all files in version 3.16.7 - 7 and 3.19.0 - 2.1 from REPOS "zypper_local"
[LEFT]instead I hoped to get only 

kernel-default - 3.19.0 - 2.1.g1133f88.x86_64.rpm


[/LEFT]
Although this command is supposed to give:
> For each specified package, zypper finds the best available version  in  defined  repositories  and  shows information for this package.


And it's even worse to find the best kernel in all defined repos.


zypper info ‘kernel *’

[LEFT] 
What is the correct command to get the best available version?

Any help is welcome.


[/LEFT]

If you are asking this question, you probably don’t understand that there is no ‘best’ kernel, only one that is ‘best’ for you. How you decide that depends on how well you understand the different features of different kernels.

If you cannot decide that and want to a guiding hand in selecting the latest software, use https://en.opensuse.org/Portal:Tumbleweed.

This from the opensue zypper help

For each specified package, zypper finds the best available version in defined repositories and shows information for this package.

It is not an opinion from me. It is in the help : https://en.opensuse.org/SDB:Zypper_manual_(plain)
I have reported a bug, and I am asked to install a specific kernel.
I would like to found it easily, be sure that this is the correct kernel, download it for future reuse if necessary, download my current kernel for future reuse if necessary,and install it with zypper. Doing all that in a script.

Best for me, mean that zypper knowing what kernel is installed, it will retreive the kernel I need
from a given name ( and not retrieving hundred of packages with word kernel in it ).
[LEFT]I thought that “zypper info” will do the job in my place.

[/LEFT]

It is just a zypper syntax problem.

Hi,

the * glob expands so it matches everything after kernel, what do you expect?

zypper info -r zypper_local  'kernel-default*'