> Forum: Cfengine Help > Subject: Re: Removing packages w/o specifying version, package_method yum, > RHEL5 > Author: zzamboni > Link to topic: https://cfengine.com/forum/read.php?3,18632,18636#msg-18636 > > Jim, > > You may want to define package_delete_convention instead, so that the > name-only specification applies only to package deletion. > http://www.cfengine.org/manuals/cf3-reference.html#package_005fmethod-in-packages > >
This works, thanks! Should it be added to cfengine_stdlib.cf? ---- diff --git a/cfengine_stdlib.cf b/cfengine_stdlib.cf index 30715fa..9bca448 100644 --- a/cfengine_stdlib.cf +++ b/cfengine_stdlib.cf @@ -989,6 +989,7 @@ package_list_arch_regex => "[^.]+\.([^\s]+).*"; package_installed_regex => ".*installed.*"; package_name_convention => "$(name).$(arch)"; +package_delete_convention => "$(name)"; package_add_command => "/usr/bin/yum -y install"; package_delete_command => "/bin/rpm -e"; ---- Jim _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine