install-mimic

overwrite files and preserve their ownership

Install

All systems
curl cmd.cat/install-mimic.sh
Debian Debian
apt-get install install-mimic
Ubuntu
apt-get install install-mimic
image/svg+xml Kali Linux
apt-get install install-mimic
Windows (WSL2)
sudo apt-get update sudo apt-get install install-mimic

install-mimic

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).