Difference between revisions of "BXadmin:Munki"
From CCGB
(Created page with "= Downgrade software = As an example, R-2.13.0 broke the GUI on at least Leopard PPC. Munki won't downgrade something like this because the installed version number will be highe...") |
(→Downgrade software) |
||
Line 7: | Line 7: | ||
<dict> | <dict> | ||
<key>md5checksum</key> | <key>md5checksum</key> | ||
− | <string> | + | <string>6031c93de224ebe8f0470ac446847a2e</string> |
<key>path</key> | <key>path</key> | ||
− | <string>/Library/Frameworks/R.framework/ | + | <string>/Library/Frameworks/R.framework/Libraries/libR.dylib</string> |
<key>type</key> | <key>type</key> | ||
<string>file</string> | <string>file</string> |
Revision as of 12:52, 27 June 2011
Downgrade software
As an example, R-2.13.0 broke the GUI on at least Leopard PPC. Munki won't downgrade something like this because the installed version number will be higher than what's in the repository.
To trick munki into installing an older version of the package, we need some other installs check that will fail for the installed version. In the case of R, we can specify an md5sum that must match for the R binary itself, in addition to the receipts:
<key>installs</key> <array> <dict> <key>md5checksum</key> <string>6031c93de224ebe8f0470ac446847a2e</string> <key>path</key> <string>/Library/Frameworks/R.framework/Libraries/libR.dylib</string> <key>type</key> <string>file</string> </dict> </array> <key>receipts</key> <array> <dict> <key>installed_size</key> <integer>5452</integer> <key>packageid</key> <string>org.r-project.R.Leopard.GUI.pkg</string> <key>version</key> <string>1.35</string> </dict> <dict> <key>installed_size</key> <integer>106896</integer> <key>packageid</key> <string>org.r-project.R.Leopard.fw.pkg</string> <key>version</key> <string>201254585</string> </dict> <dict> <key>installed_size</key> <integer>5208</integer> <key>packageid</key> <string>org.r-project.R.Leopard.GUI64.pkg</string> <key>version</key> <string>1.35</string> </dict> </array>