apk-mkndx(8)
π apk-mkndx(8) β the repo-index glow-up guide π
okay bestie, welcome to the apk-mkndx(8) page from the System Manager's Manual β¨ this is the one that turns a pile of package files into an apkv3 repository index, and honestly? iconic behavior.
πΈ NAME πΈ
apk mkndx β create apkv3 repository index file from packages π
β¨ SYNOPSIS β¨
apk mkndx [<options>...] packages...
π¦ DESCRIPTION π¦
apk mkndx creates a repository index from a list of package files. See apk-repositories(5) for more information on repository indices. no cap, that's the whole vibe π
π OPTIONS π
--description,-dTEXT β Add a description to the index. Upstream, this is used to add version information based on the git commit SHA ofaportsHEAD at the time of index generation. cute little time capsule energy π°οΈ--filter-specPKGNAME_SPEC β Filter previous index only. Each argument should bePKGNAME_SPECformatted name of a package to include from the index. This can be used to create a subset of an existing index. lowkey a little index remix π₯--hashHASH β Use HASH as the algorithm for apk v3 integrity. Currently supported:sha256(default)sha256-160
The sha256-160 is allowed to generate an index compatible with old prereleases of apkv3 that do no handle longer hashes correctly. yes, bestie, that's the compatibility lore π«Ά
--index,-xINDEX β Read an existing index from INDEX to speed up the creation of the new index by reusing data when possible. efficiency queen behavior π--output,-oFILE β Output generated index to FILE.--pkgname-specPKGNAME_SPEC β Specify package name specification for downloading the packages. APK will construct the download URL relative to the index file by expanding this specification with package specific values.
If the specification contains :// it is considered an absolute URL instead of relative. This is not recommended for public repositories as using an absolute package name specification would prevent mirroring. However, this is useful in a build environment to create a subset of an index and have it refer to packages in another repository.
If not specified, the default will be determined by apk at runtime based on how the repository is referenced:
${arch}/${name}-${version}.apkif referenced by repository base path URL${name}-${version}.apkif referenced by repository index file URL
Currently supported substitution variables are:
nameversionarchhash
Additionally a prefix of the variable can be used with syntax: ${name:4}. This truncates the substitution to maximum of 4 characters.
The specification writer should ensure that the repository does not contain multiple packages that would expand to same package filename. fr fr, don't let two packages end up with the same filename π
mwah π that's the whole page β apk-mkndx(8) from the System Manager's Manual, dated 2026-11-02. catch you in the next manpage, bestie! π«ΆπΈ
π¦ 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