Installing multiple packages in one dmg

676 views
Skip to first unread message

Joseph Rafferty

unread,
Mar 8, 2013, 1:05:42 PM3/8/13
to munk...@googlegroups.com
Today... well, I'm just not feeling so great about repackaging yet another installer if I don't have to.  In this case it's the HP Designjet Raster drivers which contains an Installer.app at the root of the dmg, Fortunately, this app has multiple pkg's in its contents. Ordinarily I'd just create a metapackage, but perhaps Munki can already handle this type of installer.

I remembered Greg recently mentioning that you can specify some flags to makepkginfo multiple times, so I tried makepkginfo -p pkg1 -p pkg2 ... However, I couldn't find Greg's post to reference it and that technique didn't work for -p. He was probably talking about -f, which will build an installs array.

Is there any other technique I'm overlooking?

Gregory Neagle

unread,
Mar 8, 2013, 1:15:02 PM3/8/13
to munk...@googlegroups.com
Create multiple pkginfos, but have one require the others. You can then add the name of the one "master" pkginfo item to your manifests.

-Greg

--
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.
 
 

Joseph Rafferty

unread,
Mar 8, 2013, 1:17:32 PM3/8/13
to munk...@googlegroups.com
Will MSU.app show the required items?

Gregory Neagle

unread,
Mar 8, 2013, 1:18:39 PM3/8/13
to munk...@googlegroups.com
Yes.

-Greg

Joseph Rafferty

unread,
Mar 8, 2013, 1:21:30 PM3/8/13
to munk...@googlegroups.com
There would be 11 obscurely-named items then. A metapackage it is.. :(

Gregory Neagle

unread,
Mar 8, 2013, 1:23:08 PM3/8/13
to munk...@googlegroups.com
You can adjust display names and descriptions, but yes, for this it would probably be better to create a proper metapackage.

-Greg

Joseph Rafferty

unread,
Mar 8, 2013, 2:15:46 PM3/8/13
to munk...@googlegroups.com

Joseph Rafferty

unread,
Mar 8, 2013, 2:15:54 PM3/8/13
to munk...@googlegroups.com
I typically use Iceberg for creating metapackages, but I've always wanted to know how to do it via command line utilities.

productbuild --identitier edu.tamu.clla.hp_designjet_drivers --version 1.0 --package /path/to/pkg1 --package /path/to/pkg2 ... output.pkg

errors with:
    productbuild: error: Cannot copy package <path> into product. (Bundle-style package "DesignjetRaster.pkg" is not supported.)

Makes sense since productbuild was intended for creating flat packages, and flat packages cannot contain many things that bundle pkgs can. But can another util be used to create a mpkg?

Gregory Neagle

unread,
Mar 8, 2013, 2:43:33 PM3/8/13
to munk...@googlegroups.com
Look how the make_munki_mpkg.sh script does it:


-Greg
Reply all
Reply to author
Forward
0 new messages