apk-audit(8)
πΈ NAME πΈ
okay so this is apk-audit(8) from the System Manager's Manual, and it's giving audit directories for changes β that's literally the whole vibe. the command is apk audit, and yes bestie, it audits directories for changes. π
β¨ SYNOPSIS β¨
apk audit [<options>...] directories...
you give it <options>... if you want them, then one or more directories... to audit. periodt.
π¦ DESCRIPTION π¦
apk audit audits the system or specified directories for changes compared to the package database. it's comparing your disk reality to the package-database receipts, and the results are the whole point.
The audit can be done against configuration files only (--backup) to generate a list of files needed to be stored in the overlay in run-from-tmps configuration. Alternatively, it can audit all installed files (--system or --full) to e.g. detect unauthorized modifications of system files. iconic behavior, honestly.
By default, the output format is one file per line, for each modified file. A character is printed indicating the line type, followed by a space, then the affected path or details. The changes detected are:
-β Database detail record+β On-disk detail recordAβ File addeddβ Directory addedDβ Directory added (with non-listed files/subdirs)eβ error occurred during audit (e.g. no permissions to read file)Mβ File metadata changed (uid, gid, or mode)mβ Directory metadata changedUβ File contents modifiedXβ File deletedxβ xattrs changed
π OPTIONS π
--backupβ audit configuration files only (this is the default, bestie). The list of files to be audited is generated from the masks inprotected_paths.d. π--check-permissionsβ check file permissions too. Namely, theuid,gid, and file mode will be checked in addition to the file content. locked in. π--detailsβ enable reporting of detail records.--fullβ same as--system, but in addition it reports all added directories and files. A built-in default override for protected paths is used, unless a--protected-pathsis explicitly specified.--ignore-busybox-symlinksβ ignore symlinks whose target is thebusyboxbinary.--packagesβ print only the packages with changed files. Instead of the full output for each modification, the set of packages with at least one modified file is printed. To repair all packages with modified files, one could use:apk audit --packages -q | xargs apk fix--protected-paths FILEβ use the givenFILEfor protected paths listings. This also makesapkignore the regularprotected_paths.ddirectories.--recursive,-rβ descend into directories and audit them as well.--systemβ audit all system files. All files provided by packages are verified for integrity with the exception of configuration files (listed inprotected_paths.d). This is useful for detecting unauthorized file changes. New files or directories are not reported.
π₯ SEE ALSO π₯
apk-protected_paths(5) β go read it for the protected-paths lore, iykyk. π¦
that's the tea, bestie π«Ά this was apk-audit(8) from the System Manager's Manual, dated 2026-11-02. now go audit those directories and stay iconic. πβ¨π
π¦ 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