Hi,
I'm trying to install a set of packages, so I'm using something like this :
vars:
"desired_packages"
slist => {
"net-snmp",
"wget",
"iotop",
};
packages:
"$(desired_packages)"
package_policy => "add",
package_method => generic;When typing on the command line "yum install man", the regexp is not greedy and the shortest version of the package name is found, and a single package is installed.
When using the method above, to many additional packages are found and installed.
I've seen one can force specific regexp when installing package.
But the issue is that the dash sign sometimes is desired and sometimes not :
I *want* :
vim-common
vim-minimal
but I don't want :
vim-X11
AND the issue is that their rpm names are :
vim-minimal-7.2.411-1.8.el6.x86_64
vim-common-7.2.411-1.8.el6.x86_64
To sum up, the issue is that the dash sign is part of the package name, and can not be considered a valid separator of the version numbers. Obviously, there are a dozen of different cases that break the regexp I could imagine (several dashes, no dashes, numbers in name...)
How do you cope with such issues?
Best regards,
--
Nicolas Ecarnot