REJMERGE(8) | System Manager's Manual | REJMERGE(8) |
rejmerge
— merge
files that were rejected during package upgrades
rejmerge |
[-hnv ] [-c
conffile] [-r
rootdir] |
rejmerge
is a package management utility,
which merges files that were rejected during package upgrades.
For each rejected file found in
/var/lib/pkg/rejected/,
rejmerge
will display difference between installed
version and the rejected version. The user can the choose to keep the
installed version, upgrade to the rejected or perform a merge of the
two.
The options are as follows:
-c
conffile,
--config
=conffile-n
,
--dry-run
-r
rootdir,
--root
=rootdir/
’. This should be used if you want
to merge rejected files on a temporary mounted partition, which is
“owned” by another system.-v
,
--version
-h
,
--help
The following environment variables affect the execution of
rejmerge
:
EDITOR
PAGER
TMPDIR
Important: All the above variables may be overridden in /etc/rejmerge.conf.
rejmerge
configuration file.Originally written by Per Lidén <per@fukt.bth.se> as part of “pkgutils” package for CRUX.
This implementation was extensively re-worked for Zeppe-Lin by
Alexandr Savca
<alexandr.savca89@gmail.com>.
While only root can merge system files, the
-n/--dry-run
option allows running rejmerge
as a regular user to
view the differences between installed and rejected files without making any
changes.
Note that you may encounter the situation when the rejected file has very strict permissions (e.g. 0400) that prohibit regular users from reading its content. For example:
$ PAGER=cat rejmerge -n diff: /var/lib/pkg/rejected/etc/tor/torrc: Permission denied =======> /etc/tor/torrc =======> [K]eep [U]pgrade [M]erge [D]iff [S]kip?
Just run rejmerge
as root if you still
want to view the diff.
December 27, 2024 | Zeppe-Lin |