LinuxCommandLibrary

pacrepairfile

resets properties on files managed by alpm

TLDR

Search for package and reset file properties

$ pacrepairfile path/to/file --package
copy
Reset a file quietly
$ pacrepairfile package_name --quiet --package
copy
Reset specific file properties (mode, uid, gid, or mtime)
$ pacrepairfile package_name --mode --package
copy
Display help
$ pacrepairfile --help
copy

SYNOPSIS

pacrepairfile [options] target

DESCRIPTION

pacrepairfile resets properties on files managed by alpm (Arch Linux Package Manager). It can restore file permissions, ownership, and modification times to their original values as recorded in the package database.
This is useful when file properties have been accidentally changed or corrupted.

PARAMETERS

--package

Search for the package owning the file
--mode
Reset file permissions mode
--uid
Reset file owner UID
--gid
Reset file group GID
--mtime
Reset file modification time
--quiet
Suppress non-essential output
--help
Display help message
--version
Display version information

CAVEATS

Only works on files tracked by installed packages. Cannot repair files that were never part of a package.

HISTORY

Part of pacutils, a collection of utilities for Arch Linux package management built on libalpm.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community