mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
34 lines
803 B
Plaintext
34 lines
803 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, linux]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# pacdiff
|
|
|
|
> Maintenance utility for `.pacorig`, `.pacnew` and `.pacsave` files created by `pacman`.
|
|
> More information: <https://manned.org/pacdiff>.
|
|
|
|
- Review files that need maintenance in interactive mode:
|
|
|
|
`pacdiff`
|
|
|
|
- Use sudo and sudoedit to remove and merge files:
|
|
|
|
`pacdiff {{[-s|--sudo]}}`
|
|
|
|
- Review files needing maintenance, creating `.bak`ups of the original if you `(O)verwrite`:
|
|
|
|
`pacdiff {{[-s|--sudo]}} {{[-b|--backup]}}`
|
|
|
|
- Use a specific editor to view and merge configuration files (default is `vim -d`):
|
|
|
|
`DIFFPROG={{editor}} pacdiff`
|
|
|
|
- Scan for configuration files with `locate` instead of using `pacman` database:
|
|
|
|
`pacdiff {{[-l|--locate]}}`
|
|
|
|
- Display help:
|
|
|
|
`pacdiff {{[-h|--help]}}`
|