On 6/21/2010 9:44 AM, no-re...@cfengine.com wrote: > > I'm trying to build a promise which allows me to downgrade a package on > demand. I wrote the following method: > > > bundle force_package(name, version) > { > packages: > centos:: > "$(name)" > package_method => yum, > package_policy => "reinstall", > package_version => "$(version)", > package_select => "==", > comment => "Enforce package"; > } > > > Unfortunately, that doesn't work as expected because yum reinstall will just > reinstall the version installed. To make it possible to downgrade a package, > package_policy "reinstall" must perform yum remove and then yum install using > the specific version number. > > Is there any other method to achieve that? Did I miss something?
Very recent versions of yum have some downgrade capabilities but even there the results are up to the rpm packaging/scripts which may not expect this case. The yum version in CentOS doesn't handle it at all - and you have to be careful about yum removes taking large numbers of other packages as dependencies. -- Les Mikesell lesmikes...@gmail.com _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine