Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@jlgreer
Created February 5, 2012 22:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jlgreer/1748179 to your computer and use it in GitHub Desktop.
Save jlgreer/1748179 to your computer and use it in GitHub Desktop.
Pkg management version comparator problem example
packages:
# First we want wireshark 1.0.11
"wireshark"
package_policy => "add",
package_method => yum_rpm_exact,
package_version => "1.0.11-1.el5_6.4",
package_architectures => { "x86_64" },
action => actionsettings_fix_inform("inform");
# Later we want wireshark 1.0.15. Swap above policy for:
"wireshark"
package_policy => "addupdate",
package_method => yum_rpm_exact,
package_version => "1.0.15-1.el5_6.4",
package_architectures => { "x86_64" },
action => actionsettings_fix_inform("inform");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment