|
Prev: trouble with add/remove software
Next: Dovecot question
From: Allen Kistler on 28 Jul 2007 19:26 I'd like to set priorities on my yum repos, but not the way the yum-priorities (CentOS or Fedora EPEL) does it. yum-priorities allows prioritizing repos, but it also overrides versions. I'd like to prioritize repositories, but NOT override versions. Example: repo1 with pri=1 has pkg1-1.0 and pkg2-1.0 repo2 with pri=2 has pkg1-1.0 and pkg2-1.1 So if I want pkg1, yum gets it from repo1 (highest pri for highest ver) But if I want pkg2, yum gets it from repo2 (highest pri for highest ver) Before I start hacking at priorities.py, has anyone solved this problem before?
From: Allen Kistler on 28 Jul 2007 20:08 Allen Kistler wrote: > I'd like to set priorities on my yum repos, but not the way the > yum-priorities (CentOS or Fedora EPEL) does it. yum-priorities allows > prioritizing repos, but it also overrides versions. I'd like to > prioritize repositories, but NOT override versions. > > Example: > repo1 with pri=1 has pkg1-1.0 and pkg2-1.0 > repo2 with pri=2 has pkg1-1.0 and pkg2-1.1 > > So if I want pkg1, yum gets it from repo1 (highest pri for highest ver) > But if I want pkg2, yum gets it from repo2 (highest pri for highest ver) > > Before I start hacking at priorities.py, has anyone solved this problem > before? Hmm... After some more digging, I get to https://lists.dulug.duke.edu/pipermail/yum/2005-May/006564.html which states "Yum will choose the repository based on the placement in the config file. If the config file lists your local repository first - then yum will attempt to get it from there first." .... which unfortunately isn't true when you throw yum-rhn-plugin into the mix, hence my problem. yum-priorities works fine with yum-rhn-plugin, assigning rhn repos a priority of 99. It's just too extreme with respect to versions.
From: Allen Kistler on 28 Jul 2007 20:21 Allen Kistler wrote: > Allen Kistler wrote: >> I'd like to set priorities on my yum repos, but not the way the >> yum-priorities (CentOS or Fedora EPEL) does it. yum-priorities allows >> prioritizing repos, but it also overrides versions. I'd like to >> prioritize repositories, but NOT override versions. >> >> Example: >> repo1 with pri=1 has pkg1-1.0 and pkg2-1.0 >> repo2 with pri=2 has pkg1-1.0 and pkg2-1.1 >> >> So if I want pkg1, yum gets it from repo1 (highest pri for highest ver) >> But if I want pkg2, yum gets it from repo2 (highest pri for highest ver) >> >> Before I start hacking at priorities.py, has anyone solved this problem >> before? > > Hmm... After some more digging, I get to > https://lists.dulug.duke.edu/pipermail/yum/2005-May/006564.html > which states > > "Yum will choose the repository based on the placement in the config > file. If the config file lists your local repository first - then yum > will attempt to get it from there first." > > ... which unfortunately isn't true when you throw yum-rhn-plugin into > the mix, hence my problem. yum-priorities works fine with > yum-rhn-plugin, assigning rhn repos a priority of 99. It's just too > extreme with respect to versions. After even more digging on the Duke site: https://devel.linux.duke.edu/bugzilla/show_bug.cgi?id=586 says "This is not true (see https://devel.linux.duke.edu/bugzilla/show_bug.cgi?id=585)" and concludes with "won't fix this. if you want this implemented - use a plugin."
From: Allen Kistler on 29 Jul 2007 00:24 Allen Kistler wrote: > I'd like to set priorities on my yum repos, but not the way the > yum-priorities (CentOS or Fedora EPEL) does it. yum-priorities allows > prioritizing repos, but it also overrides versions. I'd like to > prioritize repositories, but NOT override versions. > > Example: > repo1 with pri=1 has pkg1-1.0 and pkg2-1.0 > repo2 with pri=2 has pkg1-1.0 and pkg2-1.1 > > So if I want pkg1, yum gets it from repo1 (highest pri for highest ver) > But if I want pkg2, yum gets it from repo2 (highest pri for highest ver) > > Before I start hacking at priorities.py, has anyone solved this problem > before? In my continuing discussion with myself ... I've written a patch to priorities.py that does what I want. http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=249991
|
Pages: 1 Prev: trouble with add/remove software Next: Dovecot question |