Difference between .pkg and .dmg file?

Discussion in 'Mac Applications and Mac App Store' started by swarnap, Jul 16, 2006.

  1. macrumors newbie

    Joined:
    Jun 28, 2006
    #1
    Hi All,

    Can anyone tell me what is the difference between a .dmg file and .pkg file for Mac OS? The .pkg file is created using the PackageMaker of Mac OS for creating the installers.
     
  2. macrumors 65816

    mark!

    Joined:
    Feb 4, 2006
    Location:
    America
    #2
    *.dmg is a disk image, and a *.pkg is sort of like a zipped file.
    I don't know the advantages to either of them, though.
     
  3. macrumors 6502a

    solaris

    Joined:
    Apr 19, 2004
    Location:
    Oslo, Norway
    #3
    DMG:
    * Disk image format, like ISO, etc...
    * Is not an installer, just a way to store files.
    * Supports encryption, password protection and compression.
    * Single file (ideal for distribution).

    PKG:
    * Installer package. Can install files to different locations, etc...
    * Support compression.
    * Is just a folder, with multiple files inside (just like .app). So it is not suited for distribution.


    More information:
    http://en.wikipedia.org/wiki/.dmg
    http://en.wikipedia.org/wiki/Installer_(Mac_OS_X)
     

Share This Page