REJMERGE(8) System Manager's Manual REJMERGE(8)

rejmergemerge 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:

conffile, --config=conffile
Specify an alternate configuration file instead of the default /etc/rejmerge.conf.
, --dry-run
Print the differences between an installed version and rejected one, but do not execute any actions.
rootdir, --root=rootdir
Specify an alternate root directory instead of the default ‘/’. This should be used if you want to merge rejected files on a temporary mounted partition, which is “owned” by another system.
, --version
Print version and exit.
, --help
Print help and exit.

The following environment variables affect the execution of rejmerge:

The editor to use instead of vi(1).
The pager to use instead of more(1).
Directory in which to place temporary files. If unset or set but unavailable, /tmp is used.

: All the above variables may be overridden in /etc/rejmerge.conf.

/etc/rejmerge.conf
Default rejmerge configuration file.
/var/lib/pkg/rejected/
Directory where rejected files are stored.

0
No error occurred.
>0
Generic error code.
126
Command invoked cannot execute.
130
Script interrupted or terminated by CTRL+C.

rejmerge.conf(5)

Originally written by Per Lidén <per@fukt.bth.se> as part of “” 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/ 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