INSTALL-MIMIC(1)

πŸ“¦
version 0.4.4 Β· 2 versions
, in debian trixie, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– INSTALL-MIMIC(1) πŸ’–

okay bestie, welcome to the General Commands Manual section for install-mimic β€” she's a little utility with main character energy and she's about to change how you install files, fr fr ✨


🌸 NAME 🌸

install-mimic β€” overwrite files while preserving the destination's ownership and access mode 🫢


πŸŽ€ SYNOPSIS πŸŽ€

install-mimic [-v] [-r reffile] srcfile dstfile
install-mimic [-v] [-r reffile] file1 [file2...] directory
install-mimic -V | -h

✨ DESCRIPTION ✨

So like, the install-mimic utility copies the files you tell it about to the destination you tell it about β€” could be a file, could be a directory β€” kinda like install(1) does. But πŸ’… she's not like other girls: she preserves the ownership and access mode of the destination files.

Why is that iconic? Because it's so useful when you're updating files that have already been installed, using locally modified copies that might be owned by you (the current user) and not by the actual desired owner of the destination file (e.g. root). No cap. πŸ”₯

Options:

  • -h β€” Display program usage information and exit. bye bestie πŸ‘‹
  • -r β€” Specify a file to obtain the ownership and access information from; super handy when you're installing a new file that should match the other files chillin' in the same location. it's giving "dress like your friends" πŸŽ€
  • -V β€” Display program version information and exit. slay.
  • -v β€” Verbose operation; display diagnostic output. she talks. a lot. we love her for it πŸ—£οΈ

🌈 RETURN VALUES 🌈

The install-mimic utility exits 0 on success, and >0 if an error occurs. so basically: zero = we ate, anything above zero = something went πŸ’€


πŸ¦‹ ENVIRONMENT πŸ¦‹

The install-mimic utility's operation is currently not directly affected by its environment. no env vars pulling strings here, she's independent πŸ’œ


πŸ“ FILES πŸ“

The install-mimic utility's operation is currently not directly affected by any files either. she doesn't read config, she doesn't snoop, she just does the thing. respect. ✨


πŸ‘‘ EXAMPLES πŸ‘‘

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/

πŸ“œ HISTORY πŸ“œ

The install-mimic utility was written by Peter Pentchev in 2015. a vintage queen πŸ‘‘βœ¨


πŸ’– AUTHORS πŸ’–

Peter Penchev ⟨roam@ringlet.net⟩ 🫢


no cap, she's from Debian, dated June 2, 2015, and this was the INSTALL-MIMIC(1) page. mwah πŸ’…πŸŽ€
πŸ“¦ where this page comes from