Difference between revisions of "BXadmin:Munki"
From CCGB
(→Downgrade software) |
(→Downgrade software) |
||
Line 2: | Line 2: | ||
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. | 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 | + | 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 one of the R libraries (the binaries will be different on ppc vs x86) in addition to the receipts: |
<pre> <key>installs</key> | <pre> <key>installs</key> | ||
<array> | <array> |
Revision as of 12:58, 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 one of the R libraries (the binaries will be different on ppc vs x86) 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>