dpkg-divert --version (return code: 0)
Debian dpkg-divert version 1.18.4 (amd64).
This is free software; see the GNU General Public License version 2 or
later for copying conditions. There is NO warranty.
dpkg-divert --help (return code: 0)
Usage: dpkg-divert [<option> ...] <command>
Commands:
[--add] <file> add a diversion.
--remove <file> remove the diversion.
--list [<glob-pattern>] show file diversions.
--listpackage <file> show what package diverts the file.
--truename <file> return the diverted file.
Options:
--package <package> name of the package whose copy of <file> will not
be diverted.
--local all packages' versions are diverted.
--divert <divert-to> the name used by other packages' versions.
--rename actually move the file aside (or back).
--admindir <directory> set the directory with the diversions file.
--test don't do anything, just demonstrate.
--quiet quiet operation, minimal output.
--help show this help message.
--version show the version.
When adding, default is --local and --divert <original>.distrib.
When removing, --package or --local and --divert must match if specified.
Package preinst/postrm scripts should always specify --package and --divert.