buildrepo(1)
π buildrepo β the general commands manual, section 1, bestie π
okay so picture this: you've got an apk repository tree that needs building, and you want it done right. That's buildrepo, and she's the main character of this whole page. She's from the General Commands Manual, section 1, and she's about to make your life so much easier.
β¨ NAME β¨
buildrepo β build an apk repository tree π
π¦ SYNOPSIS π¦
buildrepo [-hknps] [-a DIR] [-d DIR] [-l DIR] [-r REPO] REPO...
π DESCRIPTION π
So here's the vibe: buildrepo builds an apk repository tree, and the way she does it is genuinely iconic β she takes care to build dependant packages in the correct order. No chaos, no "why did this fail" energy, just correct ordering, periodt. π
And the best part? buildrepo shall skip packages that are already up to date. She is not doing unnecessary work, she is not redoing what's already done. Efficiency queen. π
πΈ OPTIONS πΈ
-a,--aports=DIRβ sets the aports base dir to DIR instead of$HOME/aports. That's the default, just so you know π«Ά-c,--config=FILEβ use FILE as the config instead of/etc/buildrepo/config.lua. Custom config, custom life β¨-d,--destdir=DIRβ sets the destination repository base to DIR instead of$HOME/packages. Your packages gotta land somewhere, bestie π-h,--helpβ shows help and exits. The classic "wait what does this do again" move π-l,--logdir=DIRβ creates build logs inDIR/REPO/pkgname/instead of printing them to stdout. Receipts! Filed! Properly! π-k,--keep-goingβ keep going, even if packages fails. Yes, that's the manpage's grammar, and yes, the energy is "we don't stop, we don't fold" π₯-n,--dry-runβ dry run: don't actually build or delete, just print. A little test drive before the real thing, no cap π-p,--purgeβ purge obsolete packages fromREPODIRafter build. Clean girl aesthetic applied to your repo π§Ή-r,--deps-repo=REPOβ dependencies are found in REPO. Gotta know where to look π-s,--skip-failedβ skip those which previously failed (src dir exists). No retraumatising the failures, we move π¦-R,--rootbldβ build packages in clean chroots. Immaculate, isolated, hygienic chroot vibes β¨
β EXAMPLE β
CBUILD=aarch64 buildrepo -d "$HOME/packages" -a "$(pwd)" -p -R builder
look at her go ππ
π SEE ALSO π
abuild(1), APKBUILD(5), apk(8), ap(1) β the whole friend group, go say hi π«Ά
π AUTHORS π
Natanael Copa <ncopa@alpinelinux.org> and other lua-aports authors π
okay that's the whole page, bestie β and for the sign-off: this was the buildrepo(1) page, dated 2026-04-13, and it lives under the General Commands Manual. slay, go build something beautiful π
πβ¨
π¦ where this page comes from
- alpine 3.24: lua-aports-doc 1.3.2-r3 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms