Forum: CFEngine Help
Subject: Re: RE: CFEngine Help: Utilising debian backports
Author: simonblake
Link to topic: https://cfengine.com/forum/read.php?3,23727,23739#msg-23739

Hi Andreas

Andreas Dan Larsson Wrote:
-------------------------------------------------------

> You can use the interface /etc/apt/preferences or
> /etc/apt/preferenses.d/  (man apt_preferences) to
> make specific overrides to the priority of
> packages.

> Im not sure if the "a=squeeze-backports" part
> actually does what you like but I think it is apt
> preferences you want to use.

Thanks for that - in my limited testing, I can't get my box to take any notice 
of /etc/apt/preferences or /etc/apt/preferences.d/, so I can't test whether it 
would work any better than apt-get install package/squeeze-backports.

It has occurred to me that I could take a copy of  "body package_method apt" 
from cfengine_stdlib.cf, rename it and add a "-t squeeze-backports" to the 
relevant apt-get and aptitude calls, then change the package_method to point at 
my changed body.  That might be quite a tidy way to route around the problem.

Cheers
Simon

_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to