table of contents
- Tumbleweed 2.14.4-1.3
- Leap-16.0
| apk-audit(8) | System Manager's Manual | apk-audit(8) |
NAME¶
apk audit - audit directories for changes
SYNOPSIS¶
apk audit [<options>...] directories...
DESCRIPTION¶
apk audit audits the system or specified directories for changes compared to the package database.
The audit can be done against configuration files only (--backup) to generate 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.
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 record |
| A | File added |
| d | Directory added |
| D | Directory added (with non-listed files/subdirs) |
| e | error occured during audit (e.g. no permissions to read file) |
| M | File metadata changed (uid, gid, or mode) |
| m | Directory metadata changed |
| U | File contents modified |
| X | File deleted |
| x | xattrs changed |
OPTIONS¶
--backup
--check-permissions
--details
--full
--ignore-busybox-symlinks
--packages
To repair all packages with modified files, one could use:
--protected-paths FILE
--system
-r, --recursive
| 2024-06-22 |