[Gllug] yum and multiple archives

Stuart Sears stuart at sjsears.com
Wed Aug 8 15:18:30 UTC 2007


Alain Williams wrote:
> I am using yum on a RedHat 5 (CentOS really), against the standard (base) CentOS
> archive (repository) and also Dag's archive (lots on nice rpms).
> 
> Dag provides a few packages that are already in the base archive, eg rsync,
> but slightly different versions. I would like to use the RPMs in the base
> archive by preference and only use Dag for the ones that it doesn't have
> (eg nagios).
> 
> The trouble is that if I have Dag activated a yum update will try to update
> things (eg rsync) from Dag. I have found that, occasionally, this can lead to problems.
> 
> My question is how to I configure it to ignore anything in Dag that is in the
> base archive ? I don't want to use a big long "exclude=..." line, hard to do
> and difficult to maintain.
> 
> I suspect that the 'groups' directives will let me do this, but the documentation
> is very sparse ... has anyone succeeded ?


yum has a plugin architecture for this kind of thing.

yum install yum-priorities should provide the functionality that you want.

viz: yum info yum-priorities:
Name   : yum-priorities
Arch   : noarch
Version: 1.1.5
Release: 1.fc7
Size   : 8.5 k
Repo   : updates
Summary: plugin to give priorities to packages from different repos
Description:
This plugin allows repositories to have different priorities.
Packages in a repository with a lower priority can't be overridden by
packages
from a repository with a higher priority even if repo has a later version.


Regards

Stuart

-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list