buildrepo(1)

πŸ“¦ version 1.3.2, in alpine 3.24

πŸ’… 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 in DIR/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 from REPODIR after 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