danieldk
05-11-2006, 04:32 PM
Some days ago I wrote a YUM plugin that allows you to associate priorities to repositories. A bit like pinning in APT, but easier :). The default priority for repositories is 99, the lower there number, the higher the priority (i.e. 1 is the highest priority). The plugin will block upgrading of packages from high-priority repositories with those of low-priority repositories.
Supose that you have:
- The CentOS repositories with priority 1
- RPMForge with prioritity 10
- Some other repositories with the default priority, 99
In this case, RPMForge packages can not overwrite (update) CentOS repos packages, and all other repositories can not overwrite RPMForge or CentOS repos packages. The plugin can be found at:
http://danieldk.org/code/yum/
Instructions are in the readme. Make sure that you read the "check_obsoletes" part. Oh, yeah, and this is beta, so don't sue me if it fries your computer or makes other damage (some people are successfully using it :)). I'll add an RPM soon.
Supose that you have:
- The CentOS repositories with priority 1
- RPMForge with prioritity 10
- Some other repositories with the default priority, 99
In this case, RPMForge packages can not overwrite (update) CentOS repos packages, and all other repositories can not overwrite RPMForge or CentOS repos packages. The plugin can be found at:
http://danieldk.org/code/yum/
Instructions are in the readme. Make sure that you read the "check_obsoletes" part. Oh, yeah, and this is beta, so don't sue me if it fries your computer or makes other damage (some people are successfully using it :)). I'll add an RPM soon.