Do you use repository priorities?

Just curious. Do you use repository priorities? I mean, do you set them with some logic or you just leave them with default values?
It’s something new of 11.0, so I don’t know if people started to use it.

With 27 installed repos I could not live without them…

$ LC_ALL=C zypper lr -P
#  | Alias                | Name                 | Enabled | Refresh | Priority
---+----------------------+----------------------+---------+---------+---------
5  | home_reddwarf        | RedDwarf's Home      | Yes     | Yes     | 1
6  | kde3                 | KDE3                 | Yes     | Yes     | 25
8  | kde4_factory_desktop | KDE4 Factory Desktop | Yes     | Yes     | 25
10 | kde_qt               | Current Qt 4.x       | Yes     | Yes     | 25
11 | mozilla              | Mozilla              | Yes     | Yes     | 25
13 | nvidia               | NVIDIA               | Yes     | Yes     | 25
14 | openoffice           | OpenOffice.org       | Yes     | Yes     | 25
21 | smart                | Smart                | Yes     | Yes     | 25
25 | wine                 | Wine                 | Yes     | Yes     | 25
15 | opensuse-dvd         | openSUSE DVD         | Yes     | No      | 50
18 | repo-debug           | openSUSE Debug       | No      | No      | 50
19 | repo-non-oss         | openSUSE Non-Oss     | Yes     | No      | 50
20 | repo-oss             | openSUSE Oss         | Yes     | No      | 50
22 | updates              | Updates              | Yes     | Yes     | 50
1  | education            | Education            | Yes     | Yes     | 75
2  | emulators            | Emulators            | Yes     | Yes     | 75
3  | games                | Games                | Yes     | Yes     | 75
7  | kde4_community       | KDE4 Community       | Yes     | Yes     | 75
9  | kde_backports        | KDE Backports        | Yes     | Yes     | 75
12 | network_utilities    | Network Utilities    | Yes     | Yes     | 75
16 | opensuse_tools       | openSUSE tools       | Yes     | Yes     | 75
24 | virtualbox           | VirtualBox           | Yes     | Yes     | 75
26 | yast_svn             | YaST svn snapshots   | Yes     | Yes     | 75
27 | zypp_svn             | ZYPP SVN Builds      | Yes     | Yes     | 75
17 | packman              | Packman              | Yes     | Yes     | 87
4  | home_mvyskocil       | mvyskocil's Home     | Yes     | Yes     | 93
23 | videolan             | VideoLan             | Yes     | Yes     | 99

Hi
27… I’ve seen more for one user posted a list of 35, way too many :slight_smile: I
stick with the standard four add/use others when necessary.


# | Alias                            | Name
| Enabled | Refresh | Priority
--+----------------------------------+----------------------------------+---------+---------+---------
4 | openSUSE_-_11.0_Packman_(mirror) | openSUSE - 11.0 Packman (mirror)
| Yes     | Yes     | 110 1 | openSUSE_11.0_oss_(mirror)       |
openSUSE - 11.0 oss (mirror)     | Yes     | Yes     | 120 2 |
openSUSE_-_11.0_non-oss_(mirror) | openSUSE - 11.0 non-oss (mirror) |
Yes     | Yes     | 120 3 | openSUSE-DVD 11.0                |
openSUSE-DVD 11.0                | No      | No      | 150 5 |
openSUSE_-_11.0_updates_(mirror) | openSUSE - 11.0 Updates (mirror) |
Yes     | Yes     | 99


Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 11.0 x86 Kernel 2.6.25.16-0.1-default
up 2:14, 2 users, load average: 0.34, 0.34, 0.31
GPU GeForce 6600 TE/6200 TE - Driver Version: 177.80

I use 30 repositories :wink:

I was using priorities only for VideoLan (But I get rid of that crappy repo) and for my personnal /home: too (when I play with my own experimental packages).

I use basic 13

---+---------------------------------------------------------------------------------+---------------------------------------------+---------+---------+---------
1  | http://download.nvidia.com/opensuse/11.0                                        | NVIDIA Repository                           | Yes     | Yes     | 99      
2  | http://download.opensuse.org/repositories/OpenOffice.org:/STABLE/openSUSE_11.0/ | openSUSE BuildService - OpenOffice.org      | Yes     | Yes     | 99      
3  | http://download.opensuse.org/repositories/GNOME:/STABLE/openSUSE_11.0/          | openSUSE BuildService - GNOME:STABLE        | Yes     | Yes     | 99      
4  | http://download.opensuse.org/repositories/GNOME:/Community/openSUSE_11.0/       | openSUSE BuildService - GNOME:Community     | Yes     | Yes     | 99      
5  | http://ftp.skynet.be/pub/packman/suse/11.0/                                     | Packman Repository                          | Yes     | Yes     | 99      
6  | Main Repository (NON-OSS)                                                       | Main Repository (NON-OSS)                   | Yes     | Yes     | 99      
7  | openSUSE-DVD 11.0                                                               | openSUSE-DVD 11.0                           | Yes     | No      | 99      
8  | Emulators:Wine                                                                  | Emulators:Wine                              | Yes     | Yes     | 99      
9  | openSUSE-11.0-Updates                                                           | openSUSE-11.0-Updates                       | Yes     | Yes     | 99      
10 | http://download.opensuse.org/repositories/drivers:/webcam/openSUSE_11.0_Update/ | openSUSE BuildService - Drivers for webcams | Yes     | Yes     | 99      
11 | Main Repository (OSS)                                                           | Main Repository (OSS)                       | Yes     | Yes     | 99      
12 | http://download.opensuse.org/repositories/X11:/XGL/openSUSE_11.0/               | openSUSE BuildService - X11:XGL             | Yes     | Yes     | 99      
13 | http://download.opensuse.org/repositories/games/openSUSE_11.0/                  | openSUSE BuildService - Games               | Yes     | Yes     | 99      

But never gave much tought on priorities. After reading this post I searched the wiki for some basic info on that and found none :frowning:
All my priorities are 99, I can guess what the numbers mean but where is the official explanation?

man zypper, in the modifyrepo section, says:

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

So, both Packman and Games provide wormux 0.8.1. But the release numbers make the Games version “higher”: 0.8.1-4.1 vs 0.8.1-0.pm.1. The release number is something without too much sense, specially between different repos, you could think about it like a random number.
Even if both provide the latest available version of wormux sometimes packman version will have a higher release number and sometimes it will be Games. Since you don’t want such a decision to be random… who do you trust more, Packman or Games? When you make “zypper install wormux” the one with the highest priority will be selected.
Note that YaST is broken and will ignore the priorities. That’s fixed in openSUSE 11.1.

It is one of the reasons I finally decided to move from Ubuntu to Opensuse along with zypper being as fast as apt now. I had flirted with Opensuse for a couple of years, and always gave up because of crippled multimedia and packman/opensuse repo conflicts. Now I can set packman as the #1 priority and not have to answer 1million resolution conflicts just to install amarok or kaffeine that will work with all media. I think with Opensuse’s repo structure, this should have a lot more light shed on it!

shawnr@fastback:~> zypper lr -P
#  | Alias                                                                    | Name                                    | Enabled | Refresh | Priority
---+--------------------------------------------------------------------------+-----------------------------------------+---------+---------+---------
9  | http://ftp.skynet.be/pub/packman/suse/11.0/                              | Packman Repository                      | Yes     | No      | 1
11 | openSUSE-11.0-Updates                                                    | Updates for 11.0                        | Yes     | No      | 2
2  | http://download.opensuse.org/repositories/KDE:/Backports/openSUSE_11.0/  | openSUSE BuildService - KDE:Backports   | Yes     | No      | 3
10 | http://download.opensuse.org/repositories/KDE:/Community/openSUSE_11.0/  | openSUSE BuildService - KDE:Community   | Yes     | No      | 4
7  | repo-oss                                                                 | openSUSE-11.0-Oss                       | Yes     | No      | 5
1  | http://download.nvidia.com/opensuse/11.0                                 | NVIDIA Repository                       | Yes     | No      | 50
3  | http://download.opensuse.org/repositories/mozilla/openSUSE_11.0/         | openSUSE BuildService - Mozilla         | Yes     | No      | 50
5  | http://download.opensuse.org/repositories/Emulators:/Wine/openSUSE_11.0/ | openSUSE BuildService - Wine CVS Builds | Yes     | No      | 50
6  | http://download.opensuse.org/repositories/games/openSUSE_11.0/           | openSUSE BuildService - Games           | Yes     | No      | 50
8  | http://download.videolan.org/pub/videolan/vlc/SuSE/11.0/                 | VideoLan Repository                     | Yes     | No      | 50
4  | repo-non-oss                                                             | openSUSE-11.0-Non-Oss                   | Yes     | No      | 6

Thanks for the explanation, it really helped. I guess Im not that trained in terminal, the sad thing is I know how to use man.
This 1-click-install is making me forget the things I knew.