apk-index(8)
π apk-index(8) β your fave little index-maker, bestie π
okay so picture this: it's page apk-index(8) from the System Manager's Manual, and it's literally all about building repository index files. group-chat approved. let's gooo π«Ά
β¨ NAME β¨
apk index β create a repository index file from packages π
πΈ SYNOPSIS πΈ
apk index [<options>...] packages...
π¦ DESCRIPTION π¦
apk index creates a repository index from a list of package files, no cap. if you wanna know more about what a repository index even is, go peek at apk-repositories(5) β it's giving essential reading. π
okay here's the part where you gotta pay attention, bestie: generally, the resulting index must be cryptographically signed before apk will accept it. like, it's non-negotiable. see abuild-sign(1) for the details on that. πβ¨
π OPTIONS π
--description,-d TEXTβ 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. so like, receipts of exactly when you built it. π§Ύ--index,-x INDEXβ read an existing index from INDEX to speed up the creation of the new index by reusing data when possible. lowkey a glow-up for your build times. β‘--mergeβ merge packages into the existing INDEX. combining vibes. π«Ά--no-warningsβ disable the warning about missing dependencies. that warning happens when A depends on package B, and B doesn't have a provider in the indexed repository. so if you're tired of being told, this is your mute button. π--output,-o FILEβ output the generated index to FILE. put it somewhere cute. π--prune-originβ prune packages from the existing INDEX with the same origin as any of the new packages during merge. out with the old, periodt. βοΈ--rewrite-arch ARCHβ set all packages' architecture to ARCH. one arch to rule them all. π
π ENVIRONMENT π
SOURCE_DATE_EPOCHβ used as the build time for tar file headers inAPKINDEX.tar.gz. reproducible-builds girlies stay winning fr fr. β°
heads up bestie: stack those options in whatever order, butpackages...always comes at the end. and seriously β sign your index beforeapkwill even look at it. π
and that's the whole page, mwah π β this cutie was brought to you by the System Manager's Manual, dated 2026-11-02. slay, go build your index πππ¦
π¦ where this page comes from
- arch rolling: apk-tools 3.0.9-1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms