PACREPAIRFILE(1)

πŸ“¦ version 0.15.0, in arch rolling

✨ 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. See pacutils-sysroot(7).
  • --quiet β€” do not display progress information. Silence is golden, periodt.
  • --package=pkgname β€” search pkgname for file properties. May be specified multiple times. If --package is 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