atomic-file-install 1.0.6

For atomically installing a file or a symlink.
Documentation
Atomically install a regular file or a symlink to destination, can be either noclobber (fail if destination already exists) or replacing it atomically if it exists.