Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Greg Neagle edited this page Sep 20, 2025 · 5 revisions

(New in Munki 7)

Introduction

pkginfo items may now contain the key version_script.

The expected value for this key is a string, containing a script that outputs the version number of a currently-installed version of the software, or an empty string (or exits non-zero) if the software is not currently installed. This is a new mechanism Munki can use to determine whether or not an item needs to be installed (or updated). Since it returns a version number, Munki can use its existing version number comparison logic. In most cases, using a version_script (if possible) will be superior to using an installcheck_script.

Example

<key>version_script</key>
<string>#!/bin/sh

/usr/local/munki/managedsoftwareupdate -V
</string>

Introduction

Munki 7

Munki 6

Managed Software Center

Command-line Tools

Munki configuration

Manifests

Catalogs

Pkginfo

More Munki Features

Advanced Munki

Related tasks

More

Product-specific notes

Legacy Documentation

Clone this wiki locally