LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

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

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid