HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

pacdiff — Maintenance utility for `.pacorig`, `.pacnew` and `.pacsave` files created by `pacman`. More informa

Submitted by: @import:tldr-pages··
0
Viewed 0 times
maintenancecommandpacorigpacnewclipacdiffforutility
linux

Problem

How to use the pacdiff command: Maintenance utility for .pacorig, .pacnew and .pacsave files created by pacman. More information: <https://manned.org/pacdiff>.

Solution

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 .bakups 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]}}

Code Snippets

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]}}

Context

tldr-pages: linux/pacdiff

Revisions (0)

No revisions yet.