Skip to content

droserasprout/pacman-fix-permissions

Repository files navigation

pacman-fix-permissions

Find and fix wrong filesystem permissions on Arch Linux instances without needing to reinstall every package.

Pro tip: use lostfiles as a companion tool to find files pacman doesn't know about.

Installation

From AUR

# replace with your favourite AUR helper
yay -S pacman-fix-permissions

Local

# install required dependencies only and build package
DEV=0 make install
make build
# or prepare dev environment and run all checks
make

Usage

usage: pacman-fix-permissions [-h] [-a | -p [NAME ...] | -f [PATH ...]] [-c] [-v]

options:
  -h, --help            show this help message and exit
  -a, --all             process all installed packages (default)
  -p [NAME ...], --packages [NAME ...]
                        list of package names to process
  -f [PATH ...], --filesystem-paths [PATH ...]
                        list of filesystem paths to process
  -c, --clean           clean up package cache after processing
  -v, --version         show program's version number and exit