[opensuse] What is priority exactly in software manager and how to use it?
Hello: What does the priority 99 (default) mean in software manager? Higher or lower number defines higher priority? How to set it eg. if I want openSUSE update packages to be preferred to packman's even if version number is smaller? Thanks, Istvan -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Tue, Jan 26, 2010 at 01:29:42PM +0100, Istvan Gabor wrote:
What does the priority 99 (default) mean in software manager? Higher or lower number defines higher priority? How to set it eg. if I want openSUSE update packages to be preferred to packman's even if version number is smaller?
man zypper -p, --priority <positive-integer> Set priority of the repository. Priority of 1 is the highest, the higher the number the lower the priority. Default priority is 99. Packages from repositories with higher priority will be preferred even in case there is a higher installable version available in the repository with a lower priority. Not most intuitive but well documented. ;) Lars -- Lars Müller [ˈlaː(r)z ˈmʏlɐ] Samba Team SUSE Linux, Maxfeldstraße 5, 90409 Nürnberg, Germany
2010. január 26. 13:57 napon Lars Müller
On Tue, Jan 26, 2010 at 01:29:42PM +0100, Istvan Gabor wrote:
What does the priority 99 (default) mean in software manager? Higher or lower number defines higher priority? How to set it eg. if I want openSUSE update packages to be preferred to packman's even if version number is smaller?
man zypper
-p, --priority Set priority of the repository. Priority of 1 is the highest, the higher the number the lower the priority. Default priority is 99. Packages from repositories with higher priority will be preferred even in case there is a higher installable version available in the repository with a lower priority.
Thank you, this is exactly I wanted to know. I never used zypper so I did not have it in mind mind to check zypper manual. Cheers, Istvan -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Tuesday 26 January 2010 08:06:47 Istvan Gabor wrote: ...
Thank you, this is exactly I wanted to know. I never used zypper so I did not have it in mind mind to check zypper manual.
You will laugh when you see what else you didn't check: YaST >> Software repositories -- Help button ---- Priority of a Repository Priority of a repository is an integer value between 0 (the highest priority) and 200 (the lowest priority). Default priority is 99. If a package is available in more repositories the repository with the highest priority is used. Use the tree displayed on the left side for navigation in repositories and services. ---- It is terse, but good enough. What is missing is explanation that used means that it will be used in all calculations, so lower priority repo will be ignored. It is explicit instruction to package management to use higher level repo, not allowing mixes of versions as it was allowed before introduction of priorities. The only case when lower priority repo will be considered is when package is missing in higher level, but even then other package compatibility restrictions apply, like version match with other dependencies, so end result can be that package can't be installed, or produces list of dependency conflicts. I remember when official update repo was set to very high 20 preventing newer packages from KDE repo set to default 99 to show up in package list. Good for new users that will use only default repositories, bad for those that needed newer KDE to go away from the bugs in released version. Update repo could be set to 98 and the effect would be the same, all packages that are in 98 level will mask packages in 99 level. That means it is either the same level, or not. It was arbitrary decision to use level 20 for updates, probably to make room for user defined levels from 1-19 and 21-98. Needs update: There is no tree on left side, so someone should update help, or software :)
Cheers, Istvan
-- Regards Rajko, openSUSE Wiki Team: http://en.opensuse.org/Wiki_Team People of openSUSE: http://en.opensuse.org/People_of_openSUSE/About -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (3)
-
Istvan Gabor
-
Lars Müller
-
Rajko M.