apkbuild-lint(1)
π apkbuild-lint β the aports glow-up inspector
okay so real talk, this is the General Commands Manual page for apkbuild-lint, and it's basically the friend who looks at your APKBUILD and goes "bestieβ¦ what is this" π«Ά
β¨ NAME β¨
apkbuild-lint β a linter for Alpine Linux's build files (apkbuild) π
β¨ SYNOPSIS β¨
apkbuild-lint <apkbuild...>
β¨ DESCRIPTION β¨
So apkbuild-lint is a linter for packages in aports, no cap. It goes through the APKBUILD file and checks it for violations of policy, superfluous statements, stylistic violations and others π
If you wanna know what each individual violation actually means, go read alint(5) under the apkbuild-lint section β that's where every check is explained, iykyk.
The vibe check itself is simple: apkbuild-lint prints the policy violations it found and exits 1. And if there are no violations? Nothing gets printed, and it exits 0. Clean. Iconic. Periodt β¨
πΈ ENVIRONMENT πΈ
CUSTOM_VALID_OPTIONSβ set this to a whitespace-separated list of variables, and those variables will be considered valid inside theoptions=variable of anAPKBUILDπ¦
π¦ OUTPUT π¦
Whenever it finds a policy violation, apkbuild-lint prints to stdout in this exact format:
SEVERITYCERTAINITY:[TAG]:PATH::MSG
and here's the breakdown of every piece, bestie:
SEVERITYβ how severe the violation is, ranging fromStoM.CERTAINITYβ how likely it is not a false positive, ranging fromCtoP.TAGβ the tag of the violation, seealint(5)for more details.PATHβ the path you gaveapkbuild-lintto check.LINEβ the number of the line where the violation was found.MSGβ a short message meant for humans, so you know what the violation actually is π
π AUTHORS π
Maintained by Leo <thinkabit.ukim@gmail.com> π«Ά
π§ SEE ALSO π§
and that's the whole page, bestie π this version of apkbuild-lint(1) is dated 2026-10-14 β go forth and let your APKBUILD be unproblematic π
π¦ where this page comes from
- alpine 3.24: atools-doc 20.2.2-r27 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms