Dear Steve, Thanks for that. It does appear that it's cfengine imposing the limit way before it gets anywhere near yum. Looking at the source the issue is in popen.c where it imposes the limit of CF_MAXSHELLARGS (which is set to 30). I can see why this is done (to limit memory/stack usage) but it does break the package
mechanism rather thoroughly. Best Regards, Brett -----Original Message----- From: Steve Kemp [mailto:[EMAIL PROTECTED] Sent: 14 July 2006 11:18 To: Brett Delle Grazie Cc: help-cfengine@cfengine.org Subject: Re: Package installation of RPMs - Too many arguments in embedded script On Fri, Jul 14, 2006 at 10:56:40AM +0100, [EMAIL PROTECTED] wrote: > I'm using Yum so my rpm install command is: > > RPMInstallCommand = ( "/usr/bin/yum -y install %s" ) > > However I'm getting the messages (in verbose mode): > ... long list of packages ... > package install: cfengine:build-test: Too many arguments in embedded > script > Does anyone have a work around for this already (i.e. probably using > shellcommands)? Perhaps something like: /bin/echo %s | xargs --max-args 20 /usr/bin/yum -y install \{\} \; That would split up the package installation to only attempt 20 at a time. Of course then you might have dependency problems if the first 20 packages depend on something to be installed in the next 20 .. Steve -- _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org http://cfengine.org/mailman/listinfo/help-cfengine