.\" Generated by scdoc 1.11.3 .\" 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-index" "8" "2025-02-13" .PP .SH NAME .PP apk index - create repository index file from packages .PP .SH SYNOPSIS .PP \fBapk index\fR [<\fIoptions\fR>.\&.\&.\&] \fIpackages\fR.\&.\&.\& .PP .SH DESCRIPTION .PP \fBapk index\fR creates a repository index from a list of package files.\& See \fBapk-repositories\fR(8) for more information on repository indicies.\& .PP Generally, the resulting index must be cryptographically signed before \fBapk\fR will accept it.\& See \fBabuild-sign\fR(1) for details.\& .PP .SH OPTIONS .PP \fB-d, --description\fR \fITEXT\fR .RS 4 Add a description to the index.\& Upstream, this is used to add version information based on the git commit SHA of aports HEAD at the time of index generation.\& .PP .RE \fB--merge\fR .RS 4 Merge \fIpackages\fR into the existing \fIINDEX\fR.\& .PP .RE \fB-o, --output\fR \fIFILE\fR .RS 4 Output generated index to \fIFILE\fR.\& .PP .RE \fB--prune-origin\fR .RS 4 Prune packages from the existing \fIINDEX\fR with same origin as any of the new \fIpackages\fR during merge.\& .PP .RE \fB-x, --index\fR \fIINDEX\fR .RS 4 Read an existing index from \fIINDEX\fR to speed up the creation of the new index by reusing data when possible.\& .PP .RE \fB--no-warnings\fR .RS 4 Disable the warning about missing dependencies.\& This happens when A, depends on package B, that does not have a provider in the indexed repository.\& .PP .RE \fB--rewrite-arch\fR \fIARCH\fR .RS 4 Set all package'\&s architecture to \fIARCH\fR.\& .PP .RE .SH ENVIRONMENT .PP \fBSOURCE_DATE_EPOCH\fR .RS 4 Used as the build time for tar file headers in APKINDEX.\&tar.\&gz.\&