Configuration ProtectionΒΆ

For certain files in the prefix, and all files outside the prefix, portmod will not blindly overwrite them when installing, and will not allow modules to overwrite them. This helps nicely handle changes to files the user has manually modified.

Instead, these writes will be diverted to a different file, and the changes will be displayed to the user when they run portmod <prefix> cfg-update, which is run automatically when merges are completed.

Portmod has a simple builtin tool to accept or reject the changes, and you can get it to launch a custom merge tool by setting the MERGE_TOOL configuration variable in portmod.conf.