Convert MunkiTools to flat package

714 views
Skip to first unread message

Megan Wilhite

unread,
Feb 19, 2014, 6:43:07 PM2/19/14
to munk...@googlegroups.com
We have decided to use meraki to silently install munkitools on all of our remote client machines. The issue I have run into is meraki will only remotely install flat packages. Is there a way to convert munkitools into a flat package? 

Gregory Neagle

unread,
Feb 19, 2014, 6:45:27 PM2/19/14
to munk...@googlegroups.com
Client tools for Munki 2 will be distributed as a flat package.

If you need a flat package now, you'll have to create your own.

If Meraki also requires the packages are signed, you're even further on your own...

-Greg


On Feb 19, 2014, at 3:43 PM, Megan Wilhite <megan....@gmail.com> wrote:

We have decided to use meraki to silently install munkitools on all of our remote client machines. The issue I have run into is meraki will only remotely install flat packages. Is there a way to convert munkitools into a flat package? 

--
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.
For more options, visit https://groups.google.com/groups/opt_out.

Megan Wilhite

unread,
Feb 19, 2014, 6:47:49 PM2/19/14
to munk...@googlegroups.com
Okay great thanks! I will see what I can do to create my own package.

Josh Malone

unread,
Feb 19, 2014, 8:43:20 PM2/19/14
to munk...@googlegroups.com
pkgutil --flatten is your friend

I download the munkitools dist, pull out the app, launchd and core
sub-pkgs and build a mpkg from those using Apple packagemaker. From
there, I use pkgutil --expand followed by pkgutil --flatten to
"re-flatten" the new package into a single file that I can upload to
our CMS for other admins to grab.

Gregory Neagle

unread,
Feb 19, 2014, 8:56:12 PM2/19/14
to munk...@googlegroups.com
A bundle-style packaged flattened this way is not guaranteed to work with Apple's installer. A flat package has a different internal organization than a bundle-style package.

On Feb 19, 2014, at 5:43 PM, Josh Malone <josh....@gmail.com> wrote:

> pkgutil --flatten is your friend
>
> I download the munkitools dist, pull out the app, launchd and core
> sub-pkgs and build a mpkg from those using Apple packagemaker. From
> there, I use pkgutil --expand

?? If the package is a bundle-style package it can't be expanded. If it's a flat package, there's no need to expand it and reflatten it...

Josh Malone

unread,
Feb 19, 2014, 9:25:39 PM2/19/14
to munk...@googlegroups.com
On Wed, Feb 19, 2014 at 8:56 PM, Gregory Neagle <gregn...@mac.com> wrote:
> A bundle-style packaged flattened this way is not guaranteed to work with Apple's installer. A flat package has a different internal organization than a bundle-style package.
>
> On Feb 19, 2014, at 5:43 PM, Josh Malone <josh....@gmail.com> wrote:
>
>> pkgutil --flatten is your friend
>>
>> I download the munkitools dist, pull out the app, launchd and core
>> sub-pkgs and build a mpkg from those using Apple packagemaker. From
>> there, I use pkgutil --expand
>
> ?? If the package is a bundle-style package it can't be expanded. If it's a flat package, there's no need to expand it and reflatten it...

Okay - that's what I get when I reply to technical emails "off-the-cuff".

What I meant to say was that I use PackageMaker to re-packge the
munkitools without the "admin" portion (I know - not necessary) and
build a flat package using PM. However, I have to expand and
re-flatten it to remove the package signing because all I have is a
self-signed cert and clients will complain. Re-flattening removes the
signature entirely which -- for some reason I don't understand --
doesn't result in any complaints.

Sorry for my previous email - please disregard it. :)

Megan Wilhite

unread,
Feb 19, 2014, 9:50:37 PM2/19/14
to munk...@googlegroups.com
Perfect! I will give this a try tomorrow. thanks for the suggestion

Megan Wilhite

unread,
Feb 20, 2014, 1:48:13 PM2/20/14
to munk...@googlegroups.com
Okay so I am a total noob. I have never created packages in Macosx. I am not quit sure what I am doing wrong. These are my current steps:

1. Download munkitools
2. Open Package Maker. File Open. Select the munkitools-1.0.0.1864.0.mpkg file
3. Delete the munki admin tools because I don't want to install this on the clients
4. Select Build
5. Right click the new pacakge I built-> Open With-> Flat Package Editor-> Error 'the document munkitools.mpkg could not be opened'. 

I am not quite sure how to create the flat package. If anyone could help I would greatly appreciate it. 

Thanks

Josh Malone

unread,
Feb 20, 2014, 1:57:13 PM2/20/14
to munk...@googlegroups.com
The way I con packagemaker into building a flat pkg, you have to
select Project -> Install Properties and set 10.5 as the minimum
target.

Greg Coan

unread,
Feb 20, 2014, 2:37:33 PM2/20/14
to munk...@googlegroups.com
Megan,

You should check out autopkg -- its really great and easy (for the most part) and there is already a recipe for munki-tools.

There is a great group here:


I'm sure someone will answer your current question here, but in the long run, autopkg is a very great tool in conjunction with munki.

Gregory Neagle

unread,
Feb 20, 2014, 3:05:28 PM2/20/14
to munk...@googlegroups.com
AutoPkg is great but there is no recipe for building a flat package for munkitools. 

Sent from my iPhone
--

Greg Coan

unread,
Feb 20, 2014, 3:10:18 PM2/20/14
to munk...@googlegroups.com
Ah right, its for another management system - sorry!


--
You received this message because you are subscribed to a topic in the Google Groups "munki-dev" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/munki-dev/WrVaEdwTz40/unsubscribe.
To unsubscribe from this group and all its topics, send an email to munki-dev+...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

Megan Wilhite

unread,
Feb 20, 2014, 6:16:27 PM2/20/14
to munk...@googlegroups.com
Thank you so much! I just did a test install and it worked. I really appreciate your help!
Reply all
Reply to author
Forward
0 new messages