YaST update from highest priority repository

I thought if I went:

YaST2 -> Package -> All Packages -> Update if Newer Available

that YaST would install the most current in the highest priority repository. Given the example data below, I thought package A, version 01, which is currently installed from repository abc, would be updated to version 02 from repository xyz.

How do you get YaST to update packages from the highest priority repository?


Sample Data:
Repository: xyz  package A           Ver:02  priority:50
Repository: abc  package A installed Ver:01  priority:99

Thank you.

Good question, and I’m sure there are others who could answer this better than I can. Essentially, you need to configure yast to switch repos first.

Similar question asked here. recently.

This was my response
Yast: which priority to set to get automatic updates - openSUSE Forums

Thanks Carl. (Not yet running openSUSE 11.2 myself).

@deano
In my experience the behaviour of 11.2 is quite different to 11.1

Once you use the package switcher, zypper up will follow those switches. It seems regardless of the priority settings. Everything defaults at 99 priority in 11.2 anyway.

Once you use the package switcher, zypper up will follow those switches. It seems regardless of the priority settings. Everything defaults at 99 priority in 11.2 anyway.

Yes, its as I thought. One question though: Does zypper still make use of priorities?

From: Re: Yast: which priority to set to get automatic updates

I don’t use the updater applet. Once I’ve told the installer to switch to a repo, the next time it will include that repo, when I do 'Packages - All Packages - Update if newer version available. This also gives me the choice to skip updates.

I must have sleep in my eyes :-), because I’m not seeing what the solution is. I don’t use YaST -> Software -> “Online Update Configuration” either. I start YaST and select either “Online Update” or “Software Management” or just use zypper from the command line. I’ve used, “Update if newer version available”, but that doesn’t seem to recognize higher priority repositories.

Changing the repository can manually be done, but you need to look at the specific package and click the Versions tab. I can manually change to the new version and new repository by clicking on the “Versions” tab and clicking the newer version. But I guess I’m wondering what does the “Priority” buy us. I thought a lower number took precedence over a higher number.

I did a search earlier and came up with Yast does not show newer versions.

If you go to the packages view, you can select the packman repository. Then there appears an option “switch system packages to this repository” or something like that. If you click that yast will then favor this repo over the default one.

I didn’t understand, what is this “switch system packages to this repository”? Is that just the Version tab and the radio buttons for each package, or is it something global?

According to the YaST help:

“If a package is available in more repositories the repository with the highest priority is used.”
NOTE: Priority range is 0 (high) to 200 (low).

Bottom line: I would like YaST to find the most current package in the repository list with the lowest priority, when I click “Update if newer version available”. Is that possible?

It would be nice if YaST showed the newer version in blue in the “Installed (Available)” column, too.

Thank you.

I can’t really say for sure.
It doesn’t seem to. Let me experiment and comeback…

First let me say, all my repos are at 99. I have switched on my kde build service repos and finally on Packman.

See my first zypper lu
Then I switch Updates to priority 9 and refresh

Here is a pastebin

PasteBin.de

So in my case, it seems the answer is NO. Because IIRC in 11.1 such an action would try and roll kde back.

And if I do this for example, look: (repo 16 is the update repo)

Lenovo-G550:~ # zypper up -r 16
Loading repository data…
Reading installed packages…

The following packages are going to be upgraded:
xorg-x11-libXext xorg-x11-libXext-32bit xorg-x11-libXext-devel

3 packages to upgrade.
Overall download size: 113.0 KiB. No additional space will be used or freed after the operation.
Continue? [y/n/?] (y):

Thanks for the results of your experiment.

@opensuseforumorg42
Forget priorities
Use the package switcher as explained

Post your repo’s

zypper lr -d