[ILUG] Pinning packages in yum

Seán O Sullivan seanos at seanos.net
Mon Mar 30 12:24:26 IST 2009


On Mon, 2009-03-30 at 11:00 +0000, Bailey, Darragh wrote:
> 
> 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

I've used the following to do similar :
yum-priorities.noarch
yum-protectbase.noarch

Though, ended up using includepkgs & exclude in the repo files instead, as found it caused less problems.

Regards,

Seán



More information about the ILUG mailing list