Scroll to navigation

apk-mkpkg(8) System Manager's Manual apk-mkpkg(8)

NAME

apk mkpkg - create apkv3 package files

SYNOPSIS

apk mkpkg [<options>...]

DESCRIPTION

apk mkpkg creates a package file from given metadata and data files.

OPTIONS

--compat APK_VERSION

Produces packages comptable with given apk versions. The default currently is 3.0.0_pre1.

--files, -F PATH

Specify the build root path from where the files are collected from to be included in the package.

--info, -I KEY:VALUE

Specify metadata for the package. Assigns a metadata field KEY with the value VALUE. Refer to apk-package(5) for the list of APKv3 metadata fields. This can assign to either "package info" or "package" metadata field.

--output, -o FILE

Specify the FILE as the output file name. If not specified, a default name will be deduced from the package metadata fields.

--rootnode[=BOOL]

Deprecated alias to set compat version. yes resolves to --compat=3.0.0_pre1 and no to --compat=3.0.0_pre3.

--script, -s TYPE:SCRIPT

Add the specified SCRIPT with the TYPE. Refer to apk-package(5) PACKAGE METADATA / scripts for list of scripts types and when they are executed.

--stdout

Output resulting package to stdout.

--trigger, -t TRIGGER

Append TRIGGER path specification to list triggers which affect when the trigger script is executed.
2025-12-03