[ILUG] Pinning packages in yum

Lars Hecking lhecking at users.sourceforge.net
Mon Mar 30 12:31:14 IST 2009


Bailey, Darragh writes:
> 
> 
> Is there a way to pin packages with yum similar to the idea with apt? or force a preference order for repositories, irraspective of the versions of the packages available?
> 
> I'd like to include additional repositories such as dag, for some additional packages that some build systems that I manage may require.
> 
> Example of what I want:
> Install new packages from Base or Updates if available, and install from there even if version is lower than what is present in the additional repos
> If new package not in Base or Updates, then search additional repo's
> Update only from updates repo if current package matches what is in Base or Updates
> Otherwise update from additional repos
> 
> 
> Anything out there for yum to allow this behaviour? Basically I don't want by default to pull in updated packages from any additional (third party) repositories if they are already available via the distro repositories.
 
 There are a number of plugins available that by themselves or in combination
 may be able to do this. E.g.

 yum-protect-packages
 yum-protectbase
 yum-upgrade-helper
 yum-versionlock





More information about the ILUG mailing list