BXadmin:Munki

From CCGB
Revision as of 12:52, 27 June 2011 by Phalenor (talk | contribs) (Downgrade software)

Jump to: navigation, search

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>