prtrej(1)

NAME
prtrej - prompt the user for an action, on each file rejected by pkgadd

SYNOPSIS
prtrej

DESCRIPTION
prtrej is a small utility that helps you decide what to do with files that were rejected during package upgrades. For each rejected file found in /var/lib/pkg/rejected/, prtrej will display the difference between the installed version and the rejected version. The user can then choose to keep the existing version, or upgrade to the version provided by the latest built package.

prtrej also handles the situation where the file in /var/lib/pkg/rejected/ has no corresponding version on the working CRUX system. This situation might arise by running a patched pkgadd(8), which addresses FS#1074 by saving in /var/lib/pkg/rejected any file that

    • matches the rejection rules,

    • is owned by the previous version of the package, and

    • is not owned by the new version of the package.

The original pkgadd(8) simply deletes such a file without alerting the user, on the theory that if the new version of the package does not use the same names and paths for its config files, then over time the /etc directory can get cluttered with junk. A patched pkgadd might take the compromise approach of sequestering such potential junk files in /var/lib/pkg/rejected (overloading the directory beyond its original purpose), and in combination with prtrej lets the user choose whether to restore the old configs, or to delete them permanently (as the original pkgadd would have done).

OPTIONS

None

COMPARISON WITH OTHER UTILITIES
Unlike rejmerge(8), which lets the user open an editor to work out the differences, prtrej forces the user to choose (in its entirety) either the existing version of the file, or the version provided by the package. This inflexibility can make it quicker to go through the list of rejected files, since you will not be tempted to open an editor and inspect the changes line-by-line. Be warned: choosing either version will result in the deletion of the other one. So you might want to cancel the operation (and run rejmerge instead) if the differences are non-trivial.

AUTHORS
Markus Ackermann <maol at symlink dot ch>

Martin Opel <mo at obbl dot net>

John McQuah <jmcquah at disroot dot org>

SEE ALSO
pkgadd(8), pkgrm(8), pkginfo(8), rejmerge(8)