Documentation

    Table of Content
    • 3D File Formats
      • 3D File Formats
      • 3D2
      • 3DS
      • 3MF
      • AMF
      • ASE
      • DAE
      • DRC
      • E57
      • FBX
      • GLB
      • GLTF
      • IPT
      • JRXML
      • JT
      • MA
      • MB
      • OBJ
      • PLY
      • PRC
      • RVM
      • STEP
      • U3D
      • USD
      • USDZ
      • VRML
      • X
      • X3D
    • Audio File Formats
      • Audio File Formats
      • AAC
      • AC3
      • ALAC
      • FLAC
      • M3U
      • MID
      • MKA
      • MP3
      • MPC
      • OGG
      • OPUS
      • RA
      • SDT
      • STAP
      • WAV
      • WMA
    • CAD File Formats
      • CAD File Formats
      • CF2
      • DC3
      • DGN
      • DWF
      • DWFX
      • DWG
      • DWT
      • DXF
      • HPGL
      • IFC
      • IGES
      • IGS
      • JVSG
      • NWC
      • NWD
      • NWF
      • PAT
      • PHJ
      • PLT
      • PSM
      • PSS
      • RVT
      • STL
    • Compression File Formats
      • Compression File Formats
      • 7Z
      • ARC
      • ARJ
      • B6Z
      • BZ2
      • DAA
      • DAR
      • DEB
      • GZ
      • ICE
      • KGB
      • LBR
      • LZ4
      • LZMA
      • MPKG
      • OAR
      • PKG
      • RAR
      • RPM
      • RTE
      • TAR
      • TBZ
      • TGS
      • XAPK
      • XAR
      • ZIM
      • ZIP
      • ZL
    • Database
      • Database File Formats
      • ACCDB
      • ACCDE
      • ACCDT
      • ACCFT
      • BAK
      • BCP
      • DDL
      • DTSX
      • LDF
      • MDB
      • MDF
      • MYI
      • NDF
      • NSF
      • SQL
      • SQLITE
    • EBook File Formats
      • EBook File Formats
      • ACSM
      • AEP
      • APNX
      • AVA
      • AZW
      • AZW1
      • AZW3
      • AZW4
      • BKK
      • BPNUEB
      • CBC
      • CBR
      • CBZ
      • CEB
      • CEBX
      • DNL
      • EA
      • EAL
      • EBK
      • EDN
      • EPUB
      • ETD
      • FB2
      • FKB
      • HAN
      • HTML0
      • HTMLZ
      • HTXT
      • HTZ4
      • HTZ5
      • IBOOKS
      • KFX
      • KOOB
      • LIT
      • LRF
      • LRS
      • LRX
      • MART
      • MBP
      • MOBI
      • NCX
      • NVA
      • OEB
      • OEBZIP
      • OPF
      • ORB
      • PDB
      • PHL
      • PML
      • PMLZ
      • POBI
      • QMK
      • RB
      • RZB
      • RZS
      • SNB
      • TCR
      • TK3
      • TPZ
      • TR
      • TR3
      • VBK
      • WEBZ
      • YBK
    • Email File Formats
      • Email File Formats
      • EDB
      • EML
      • EMLX
      • ICS
      • MBOX
      • MSG
      • OFT
      • OLM
      • OST
      • PST
      • TNEF
      • VCF - Virtual Contact File
    • Font
      • Font File Formats
      • CFF
      • CFF2
      • EOT
      • FNT
      • FON
      • JFPROJ
      • OTF
      • PFA
      • PFB
      • PFM
      • SFD
      • TTC
      • TTF
      • Type1
      • WOFF
    • GIS File Formats
      • GIS File Formats
      • 000
      • E00
      • FileGDB
      • GeoJSON
      • GML
      • GPX
      • KML
      • KMZ
      • OSM
      • QGD
      • QGS
      • QGZ
      • QLR
      • QML
      • SHP
    • Image File Formats
      • Image File Formats
      • AI
      • APNG
      • AVIF
      • BMP
      • BPG
      • CDR
      • CMX
      • CPC
      • DCM
      • DIB
      • DICOM
      • DJVU
      • DNG
      • EMF
      • EMZ
      • EXIF
      • FLIF
      • FODG
      • GBR
      • GIF
      • HEIC
      • HEIF
      • ICO
      • J2C
      • J2K
      • JFIF
      • JP2
      • JPEG
      • JPF
      • JPM
      • JPX
      • JXR
      • MNG
      • ODG
      • OTG
      • PNG
      • PSB
      • PSD
      • SVGZ
      • TGA
      • TIFF
      • VDX
      • VSD
      • VSDM
      • VSDX
      • VSS
      • VSSM
      • VSSX
      • VST
      • VSTM
      • VSTX
      • VSX
      • VTX
      • WEBP
      • WMF
      • WMZ
      • XPM
    • Note Taking File Formats
      • Note Taking File Formats
      • ONE
      • ONETOC2
    • Page Description Language
      • Page Description Language
      • CGM
      • EPS
      • OXPS
      • PCL
      • PS
      • SVG
      • SWF
      • TEX
      • XPS
      • XSLFO
    • PDF
      • PDF
      • PDF/A
      • PDF/E
      • PDF/UA
      • PDF/VT
      • PDF/X
    • Presentation File Formats
      • Presentation File Formats
      • ODP
      • OTP
      • POT
      • POTM
      • POTX
      • PPS
      • PPSM
      • PPSX
      • PPT
      • PPTM
      • PPTX
    • Programming
      • Programming
      • C
      • Class
      • CPP
      • CS
      • CSPROJ
      • Dart
      • H
      • JAR
      • Java
      • JSP
      • JSPF
      • KT
      • MEL
      • MF
      • PHP
      • PY
      • SH
      • SLN
      • SWIFT
      • TOML
      • VB
      • VBPROJ
      • VCXPROJ
      • YAML
    • Project Management File Formats
      • Project Management File Formats
      • MPP
      • MPT
      • MPX
      • XER
      • XML
    • Spreadsheet File Formats
      • Spreadsheet File Formats
      • CSV
      • DIF
      • FODS
      • NUMBERS
      • NUMBERS-TEF
      • ODS
      • OTS
      • SXC
      • TSV
      • XLA
      • XLAM
      • XLM
      • XLS
      • XLSB
      • XLSM
      • XLSX
      • XLT
      • XLTM
      • XLTX
    • Video File Formats
      • Video File Formats
      • 3G2
      • 3GP
      • AMV
      • ASF
      • AVCHD
      • AVI
      • F4V
      • FLV
      • H264
      • H265
      • M4V
      • MJPEG
      • MK3D
      • MKS
      • MKV
      • MOV
      • MP4
      • MPG
      • MXF
      • QT
      • RM
      • RMVB
      • RV
      • SRT
      • VOB
      • VP6
      • VP8
      • VP9
      • WEBM
      • WMV
      • Xvid
    • Web File Formats
      • Web File Formats
      • ASP
      • ASPX
      • CHM
      • CSS
      • HTM
      • HTML
      • IXBRL
      • JS
      • JSON
      • MHT
      • MHTML
      • Sass
      • SCSS
      • VDW
      • XAML
      • XBRL
      • XHTML
      • XOML
      • XSLT
    • Word Processing File Formats
      • Word Processing File Formats
      • ABA
      • DOC
      • DOCM
      • DOCX
      • DOT
      • DOTM
      • DOTX
      • MD
      • ODT
      • OTT
      • RTF
      • TXT
      • WPS
    • Reporting
      • RDL
      • RDLC
      • RPL
    1. Home
    2. Compression File Formats
    3. MPKG

    What's on this Page

      • What is a MPKG file?
      • MPKG File Format
      • References

    What is a MPKG file?

    A file with .mpkg extension is an archive installer file, mostly found on MacOS Operating Systems. It contains all required installation files of the application without the need to keep associated files separately. A single MPKG file can contain package files (PKG) as one of the installation files in addition to other files. MPKG files can not be opened with any general software and are executed automatically on MacOS using Apple Installer.

    MPKG File Format

    An MPKG file contains different types of files that are required for the installation of multiple packages it contains. This is can be seen from the image below which is the tree structure of a sample MPKG file. This tree structure is exported using tree command on MacOS terminal.

    MPKG File Format

    The description of different elements in the image is as follow.

    Packages Directory - stores a list of pkg files, that is, a list of sub-Packages Resources Directory - stores resources used by pkg, such as localized resources and images , Rtf documents, pdf documents, etc. Distribution.dist file - An xml document containing information such as sub-packages to be installed and runtime scripts

    Sample XML file for an MPKG file can look as follow depending upon the associated sub-packages.

    <?xml version="1.0" encoding="utf-8" standalone="no"?>
    <installer-script minSpecVersion="1.000000" authoringTool="com.apple.PackageMaker" authoringToolVersion="3.0.6" authoringToolBuild="201">
        <title>myframework installer</title>
        <options customize="never" allow-external-scripts="no" rootVolumeOnly="false"/>
        <installation-check script="pm_install_check();"/>
        <volume-check script="pm_volume_check();"/>
        <script>function pm_volume_check() {
      if(!(my.target.systemVersion &amp;&amp; /* &gt;= */ system.compareVersions(my.target.systemVersion.ProductVersion, '10.6') &gt;= 0)) {
        my.result.title = 'Failure';
        my.result.message = 'Installation cannot proceed, as not all requirements were met.';
        my.result.type = 'Fatal';
        return false;
      }
      return true;
    }
    
    function pm_install_check() {
      if(!(/* &gt;= */ system.compareVersions(system.version.ProductVersion, '10.6') &gt;= 0)) {
        my.result.title = 'Failure';
        my.result.message = 'Installation cannot proceed, as not all requirements were met.';
        my.result.type = 'Fatal';
        return false;
      }
      return true;
    }
    </script>
        <choices-outline>
            <line choice="choice0"/>
        </choices-outline>
        <choice id="choice0" title="app">
            <pkg-ref id="com.macbook.myframeworkInstaller.pkg"/>
        </choice>
        <pkg-ref id="com.macbook.myframeworkInstaller.pkg" installKBytes="108" version="1.0" auth="Root">file:./Contents/Packages/app.pkg</pkg-ref>
    </installer-script>
    

    app.pkg - is the sub-package to be installed. It is a directory of the Bundle structure in pkg format. It contains a Contents subdirectory.

    References

    • OSX Flat Packages
    • C++ MPKG Package Manager