QDK - QPKG Development Kit
  • Introduction
  • Installation of QDK
  • QPKG Configuration File
  • Installation Script
    • Generic Installation Script
    • Package Specific Installation Functions
    • Order of Execution
  • QDK Variables
  • Build Scripts
  • User Configuration File
  • Invoking qbuild
    • Initialize a Build Environment
    • Control the Build
    • Trust but Verify
    • Exclude Files
    • Scripts
    • Status Information
    • Sections
    • Extract QPKG Packages
    • Query Packages
    • Help and Usage
  • Creating a QPKG Package Using QDK
    • Creating a Simple QPKG Package
    • Creating Platform Specific QPKG Packages
    • Converting an Existing QPKG Package
  • Appendix A – QPKG Format
    • Header Script
    • Control Files
    • Data File
    • Extra Data Files
    • QDK Area
    • Tail Section
Powered by GitBook
On this page

Was this helpful?

Appendix A – QPKG Format

PreviousConverting an Existing QPKG PackageNextHeader Script

Last updated 5 years ago

Was this helpful?

Simply described a QPKG file is a self-extracting archive that consists of a header, followed by the data, and

last a tail section.

The header is a shell script that extracts the attached data and the tail section is 100 bytes of QNAP specific

data used by the web interface at installation.

In QDK the data has been split into several parts and a QDK area has been added for QDK specific data.

First a tar archive that contains the gzip compressed tar archive with the control files is attached, then the

data archive (either a gzip, bzip2, or 7-zip compressed tar archive), which is followed by an optional tar

archive with any extra data files (specified using QDK_EXTRA_FILE). If the QPKG file is signed then the

signature is added to the QDK area.