.\" Generated by scdoc 1.11.5 .\" Complete documentation for this program is not available as a GNU info page .ie \n(.g .ds Aq \(aq .el .ds Aq ' .nh .ad l .\" Begin generated content: .TH "apk\-mkpkg" "8" "2026\-08\-31" .PP .SH NAME .PP apk mkpkg \- create apkv3 package files .PP .SH SYNOPSIS .PP \fBapk mkpkg\fR [<\fIoptions\fR>.\&.\&.\&] .PP .SH DESCRIPTION .PP \fBapk mkpkg\fR creates a package file from given metadata and data files.\& .PP .SH OPTIONS .PP \fB\-\-compat\fR \fIAPK_VERSION\fR .RS 4 Produces packages compatible with given apk versions.\& The default currently is \fB3.\&0.\&0_pre1\fR.\& .PP .RE \fB\-\-files\fR, \fB\-F\fR \fIPATH\fR .RS 4 Specify the build root path from where the files are collected from to be included in the package.\& .PP .RE \fB\-\-info\fR, \fB\-I\fR \fIKEY:VALUE\fR .RS 4 Specify metadata for the package.\& Assigns a metadata field \fIKEY\fR with the value \fIVALUE\fR.\& Refer to \fBapk\-package\fR(5) for the list of APKv3 metadata fields.\& This can assign to either "package info" or "package" metadata field.\& .PP .RE \fB\-\-output\fR, \fB\-o\fR \fIFILE\fR .RS 4 Specify the \fIFILE\fR as the output file name.\& If not specified, a default name will be deduced from the package metadata fields.\& .PP .RE \fB\-\-rootnode\fR[=\fBBOOL\fR] .RS 4 Deprecated alias to set compat version.\& \fByes\fR resolves to \fB\-\-compat=3.\&0.\&0_pre1\fR and \fBno\fR to \fB\-\-compat=3.\&0.\&0_pre3\fR.\& .PP .RE \fB\-\-script\fR, \fB\-s\fR \fITYPE:SCRIPT\fR .RS 4 Add the specified \fBSCRIPT\fR with the \fBTYPE\fR.\& Refer to \fBapk\-package\fR(5) \fBPACKAGE METADATA\fR / \fBscripts\fR for list of scripts types and when they are executed.\& .PP .RE \fB\-\-stdout\fR .RS 4 Output resulting package to stdout.\& .PP .RE \fB\-\-trigger\fR, \fB\-t\fR \fITRIGGER\fR .RS 4 Append \fITRIGGER\fR path specification to list triggers which affect when the \fBtrigger\fR script is executed.\& .PP .RE \fB\-\-xattrs\fR[=\fBBOOL\fR] .RS 4 Specify if xattrs should be included in the metadata.\& .RE