Linux command
pacdiff 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Review files
pacdiff
Example
pacdiff -s
Example
pacdiff -s -b
Example
DIFFPROG=[editor] pacdiff
Example
pacdiff -l
说明
pacdiff manages configuration file conflicts created by pacman during package upgrades. When pacman encounters modified configuration files, it saves new versions with .pacnew extension and original versions as .pacorig or .pacsave, requiring manual review. The tool presents each file interactively, allowing users to view differences, edit files, overwrite with new version, or remove the conflict file. It uses vim -d by default for viewing differences, but respects the DIFFPROG environment variable for custom diff tools.
参数
- -s, --sudo
- Use sudo and sudoedit to remove and edit files
- -b, --backup
- Create .bak backup of original when overwriting
- -l, --locate
- Find files using locate instead of pacman database
- -f, --find
- Find files using find command
- -p, --pacmandb
- Scan using pacman database (default)
- -o, --output
- Print files to stdout instead of interactive mode
- -3, --threeway
- View diffs in three-way comparison (original, new, current)
- -m, --merge
- Perform a three-way merge
- -h, --help
- Display help message
FAQ
What is the pacdiff command used for?
pacdiff manages configuration file conflicts created by pacman during package upgrades. When pacman encounters modified configuration files, it saves new versions with .pacnew extension and original versions as .pacorig or .pacsave, requiring manual review. The tool presents each file interactively, allowing users to view differences, edit files, overwrite with new version, or remove the conflict file. It uses vim -d by default for viewing differences, but respects the DIFFPROG environment variable for custom diff tools.
How do I run a basic pacdiff example?
Run `pacdiff` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -s, --sudo do in pacdiff?
Use sudo and sudoedit to remove and edit files