Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>What you are trying to do is to replace a "core" package (one which is contained in the CentOS repository) with a newer package from a "3rd party" repository (RPMForge), which is what the priorities plugin is designed to prevent.</p> <p>The RPMForge repository contains both additional packages not found in CentOS, as well as newer versions of core packages. Unfortunately, <code>yum</code> is pretty stupid and will always update a package to the latest version it can find in <em>any</em> repository. So running "<code>yum update</code>" with RPMforge enabled will update half of your system with the latest (bleeding edge, possibly unstable and less well supported) packages from RPMForge.</p> <p>Therefore, the recommended way to use repos like RPMForge is to use them only together with a yum plugin like "priorites", which prevents packages from "high" priority repos to overwrite those from "low" priority repos (the name of the "priority" parameter is very misleading). This way you can savely install <em>additional</em> packages (that are not in core) from RPMForge, which is what most people want.</p> <p>Now to your original question ...</p> <p>If you <em>want</em> to replace a core package, things get a little tricky. Basically, you have two options:</p> <ol> <li><p>Uninstall the priority plugin, and <em>disable</em> the RPMForge repository by default (set <code>enabled = 0</code> in <code>/etc/yum.repos.d/rpmforge.repo</code>). You can then selectively enable it on the command line:</p> <pre><code>yum --enablerepo=rpmforge install subversion </code></pre> <p>will install the latest subversion and dependencies from RPMForge.</p> <p>The problem with this approach is that if there is an update to the subversion package in RPMForge, you will not see it when the repo is disabled. To keep subversion up to date, you have to remember to run</p> <pre><code>yum --enablerepo=rpmforge update subversion </code></pre> <p>from time to time.</p></li> <li><p>The second possibility is to use the priorites plugin, but manually "mask" the core subversion package (add <code>exclude=subversion</code> to the <code>[base]</code> and <code>[update]</code> sections in <code>/etc/yum.repos.d/CentOS-Base.repo</code>).</p> <p>Now yum will behave as if there is no package named "subversion" in the core repository and happily install the latest version from RPMForge. Plus, you will always get the latest subversion updates when running <code>yum update</code>.</p></li> </ol>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload