10

I'm fighting with OSX's packageMaker as it doesn't allow me to create a '.pkg'. Instead it's forcing me to make a '.pkg.mpkg'.

This seems like a stupid question I should be able to respond with a couple of google searches, but I'm not being able to find much info about this.

Could anyone explain the main differences between them and if you know the restriction for which you have to use one or the other?

grahamparks
  • 16,130
  • 5
  • 49
  • 43
Santi
  • 4,428
  • 4
  • 24
  • 28

3 Answers3

13

To the best of my knowledge, .pkg files are simple, straightforward Installer packages. However, .mpkg files are very customizable, and can link to multiple .pkg files which the end user can turn on and off in the Installer.

I think the .pkg.mpkg double-extension you're seeing is just a text appending issue. Packages are either .pkg or .mpkg, not a combination of the two.

Collin Allen
  • 4,449
  • 3
  • 37
  • 52
  • You're right, I can't believe I was so dumb for not catching that one. +1 I'm still looking for an answer in the restrictions to use one or the other. – Santi Sep 03 '09 at 21:10
  • 1
    @Santi If you're using the nice [Packages App](http://s.sudre.free.fr/Software/Packages/about.html) by Stéphane Sudre, you can create a simple "Raw Package" or "Distribution". "Raw" always generates a .pkg file. If you use "Distribution", you can choose between "Flat" and "Bundle" in the project settings tab. "Flat" will generate a .pkg file, while bundle will generate a .mpkg file. The difference in the generated Packages Project xml file is PROJECT_SETTINGS/ADVANCED_OPTIONS/BUILD_FORMAT. "1" for "Bundle"/mpkg, "0" for "Flat"/pkg. – Sacha Guyer Sep 08 '17 at 15:32
2

I believe Collin Allen is correct -- the main difference is that the metapackage can reference other packages. But as to your PackageMaker problem, have you tried Iceberg? It's an alternative (free) that we have had generally better luck with: fewer bugs, easier to understand and use, greater freedom, etc.

Stabledog
  • 3,110
  • 2
  • 32
  • 43
0

I don't have a good answer, but PackageManager automagically switched from .pkg to .mpkg once I tried to modify the text that the user sees. Both included sub installers (.pkg) prepared by vendors.

tomwhipple
  • 2,850
  • 27
  • 28