DOKK / manpages / debian 12 / install-mimic / install-mimic.1.en
INSTALL-MIMIC(1) General Commands Manual INSTALL-MIMIC(1)

install-mimicoverwrite files preserving the destination's ownership and access mode

install-mimic [-v] [-r reffile] srcfile dstfile

install-mimic [-v] [-r reffile] file1 [file2...] directory

install-mimic -V | -h

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

Options:

Display program usage information and exit.
Specify a file to obtain the ownership and access information from; useful when installing a new file that should be similar to other files in the same location.
Display program version information and exit.
Verbose operation; display diagnostic output.

The install-mimic utility exits 0 on success, and >0 if an error occurs.

The install-mimic utility's operation is currently not directly affected by its environment.

The install-mimic utility's operation is currently not directly affected by any files.

Overwrite a system file with a local copy:

install-mimic ./install-mimic.pl /usr/bin/install-mimic

Overwrite several files with local copies with the same name:

install-mimic cinder/*.py /usr/lib/python2.7/dist-packages/cinder/

Install a new file similar to a system file:

install-mimic -v -r /usr/bin/install-mimic install-none /usr/bin/

The install-mimic utility was written by Peter Pentchev in 2015.

Peter Penchev ⟨roam@ringlet.net⟩

June 2, 2015 Debian