Munki does not re-install deleted package (pkg)

440 views
Skip to first unread message

Björn Albers

unread,
Dec 12, 2018, 8:55:38 AM12/12/18
to munki-dev
Hello,

Munki installs my package just fine.
But when I delete the corresponding App "/Applications/MaSc.app" then Munki does not reinstall the package and just logs:

Dec 12 2018 09:22:09 +0100     MaSc version 5.3.1 (or newer) is already installed.

Booting the Mac doesn't help.
Re-installation only works if I manually "forget" the package:

aragorn:~ rgp$ pkgutil --packages | grep -i masc
de.kv-it-gmbh.masc
aragorn:~ rgp$ sudo pkgutil --forget de.kv-it-gmbh.masc
Password:
Forgot package 'de.kv-it-gmbh.masc' on '/'.

The pkginfo looks fine to me and does contain "installs" with the right path - see attachment.
I even deleted the whole section "receipts" from pkginfo but that didn't solve the problem either.


Thanks in advance for any tips or suggestions to debug this!
Björn

PS: Here the installed version...

aragorn:~ rgp$ munkiimport --version
3.5.0.3621
aragorn:~ rgp$ /usr/libexec/PlistBuddy -c 'Print :CFBundleShortVersionString' /Applications/Managed\ Software\ Center.app/Contents/Info.plist 
4.8.3615
MaSc-5.3.1.plist

Gregory Neagle

unread,
Dec 12, 2018, 9:42:35 AM12/12/18
to munk...@googlegroups.com
You _did_ run `makecatalogs` after adding the installs array to the pkginfo, yes?

Running `sudo managedsoftwareupdate -vvv` on an affected machine will show you why Munki is deciding the item does not need to be installed; it really sounds like it is _not_ using the installs array at all (since deleting the receipt leads to reinstall), which leads me to my initial question above.

-Greg

--
Find related discussion groups here:
https://github.com/munki/munki/wiki/Discussion-Group
---
You received this message because you are subscribed to the Google Groups "munki-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to munki-dev+...@googlegroups.com.
To post to this group, send email to munk...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
<MaSc-5.3.1.plist>

Björn Albers

unread,
Dec 12, 2018, 10:19:14 AM12/12/18
to munki-dev
Greg, I'm so stupid: That was exactly the problem :-)
Sorry for the noise!
My new mantra: always run `makecatalogs`, always run `makecatalogs`, always run `makecatalogs`, ...

I found out that `munkiimport` needs the application as additional argument (`-f /Applications/Foo.app`) in order to build the "installs"-section in the pkginfo, so I've patched it manually afterwards.
Reply all
Reply to author
Forward
0 new messages