-
Notifications
You must be signed in to change notification settings - Fork 0
Resolve config conflicts
The system may notify you of conflicting configuration files during or after an update.
It is highly recommended to resolve these conflicts ASAP. Misconfigured or conflicting configs can prevent programs from running properly, and may worsen if left unaddressed.
# example messages
warning: /etc/pacman.d/xyz installed as /etc/pacman.d/xyz.pacnew
warning: /etc/pacman.d/abc installed as /etc/pacman.d/abc.pacsaveThe eos-pacdiff script is used to resolve these conflicts. It utilizes both the pacdiff utility and meld GUI tools.
-
Open a terminal and run:
$ eos-pacdiff
-
Select
V(iew)to compare the config files side-by-side. -
Review the files for significant changes.
-
R(emove),O(verwrite), orM(erge)the differing lines as necessary.
Tip
It is good practice to create backups of both the original and modified .pacnew and .pacsave files.
eos-pacdiff creates backups for all modes, warns the user not to make rash changes, and calls the below tools to assist the user resolve conflicts:
-
pacdiff- A utility tool that allows users to view and merge any changes between the original and.pacnew/.pacsavefiles. -
meld- A GUI tool that helps users view the comparisons between config files
To run the same process manually, use:
$ DIFFPROG=meld pacdiff -sCaution
Do not run this with root permissions! This is a powerful tool that can cause serious damage to system files if used incorrectly.
Refrain from modifying key system files such as /etc/passwd, /etc/group, and /etc/shadow, otherwise you may lock yourself out of your system.
Here is an example of how a file comparison looks like in meld:
Image credit: LinuxOpSys - How to use Meld diff tool in Linux
Note
These are configuration files that are generated when pacman creates copies of config files and prevents overwrite by appending .pacsave or .pacnew to the filename.
-
.pacnewis created during an upgrade to avoid overwriting the existing config file. -
.pacsaveis created during package removal (or an upgrade that first requires removal) and the system indicates that it should also be backed up.
Note
