PACREPAIRFILE(1)
β¨ NAME β¨
pacrepairfile β reset properties on alpm-managed files. This is the pacrepairfile page from the pacutils manual, bestie β section 1 energy, obviously π
.
πΈ SYNOPSIS πΈ
pacrepairfile [options] (--gid|--mode|--mtime|--uid)... <file>...
pacrepairfile (--help|--version)
π¦ DESCRIPTION π¦
So like, pacrepairfile resets file properties for alpm-managed files based on MTREE data. That's the whole vibe.
Also, if stdin is not connected to a terminal, files will be read from stdin. We'll get into the caveat about that later β it's giving "naive check," and honestly π.
π OPTIONS π
--config=pathβ set an alternate configuration file path.--dbpath=pathβ set an alternate database path.--root=pathβ set an alternate installation root.--sysroot=pathβ set an alternate system root. Seepacutils-sysroot(7).--quietβ do not display progress information. Silence is golden, periodt.--package=pkgnameβ searchpkgnamefor file properties. May be specified multiple times. If--packageis not specified, all installed packages will be searched.--helpβ display usage information and exit.--versionβ display version information and exit.
β¨ Fields β¨
--gidβ reset file owner group id.--modeβ reset file permissions.--mtimeβ reset file modification time.--uidβ reset file owner user id.
π CAVEATS π
Okay so this part is important, bestie. pacrepairfile determines whether or not to read files from stdin based on a naive check using isatty(3). If pacrepairfile is called in an environment β such as a shell function or script being used in a pipe β where stdin is not connected to a terminal but does not contain files to reset, pacrepairfile should be called with stdin closed. For POSIX-compatible shells, this can be done with "<&-".
Also, in order for pacrepairfile to reset a file's properties, the package which owns the file must have MTREE data. No MTREE data? No reset. That's the rule π
.
kisses and good vibes only: this page is from pacutils, dated 2025-12-04, and it's the PACREPAIRFILE(1) manual page. bye bestie ππ
π¦ where this page comes from
- arch rolling: pacutils 0.15.0-2 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms