Somewhat related to the recent discussion about handling the .pacnew
and related files, eos-pacdiff
supports a new option --backup
with which eos-pacdiff
will backup the existing file. This can help if user accidentally overwrites the existing /etc/passwd
with /etc/passwd.pacnew
.
The new option does about the same as option --backup
for program pacdiff
.
The main difference is eos-pacdiff
extends backup creation from the overwrite mode to view and merge modes too. So option --backup
enables backup creation with all those 3 modes.
In addition, a new config file /etc/eos-pacdiff.conf
provides a finer control for selecting which of the 3 modes user wants backup enabled. You can configure them with the following variables:
BACKUP_OVERWRITE=no
BACKUP_VIEW=no
BACKUP_MERGE=no
Set any or all of them to yes
to enable backup on each mode. The default for all variables in no
, i.e. the same as with pacdiff
.
Find more details about eos-pacdiff
with command eos-apps-info
.
Note that eos-pacdiff
is in package eos-bash-shared
(and this feature was added in package version 24.5-1).