Install install-mimic by entering the following commands in the terminal:
sudo apt update sudo apt install install-mimic
Description:
overwrite files and preserve their ownership
The install-mimic utility copies the specified files to the specified destination (file or directory) similarly to install(1), but it preserves the ownership and access mode of the destination files. This is useful when updating files that have already been installed with locally modified copies that may be owned by the current user and not by the desired owner of the destination file (e.g. root).
Homepage: https://devel.ringlet.net/misc/install-mimic/
Version: 0.3.1-1
Section: universe/utils