Bash script to install a much more recent version of rsync
from source on macOs.
Requires as a minimum Xcode CLI tools (no need for a full install). Can be installed via the following:
$ xcode-select --install
#!/bin/bash -e | |
RSYNC_VERSION="3.4.1" | |
curl --remote-name --silent "https://rsync.samba.org/ftp/rsync/src/rsync-$RSYNC_VERSION.tar.gz" | |
curl --remote-name --silent "https://rsync.samba.org/ftp/rsync/src/rsync-patches-$RSYNC_VERSION.tar.gz" | |
tar --extract --file "rsync-$RSYNC_VERSION.tar.gz" | |
tar --extract --file "rsync-patches-$RSYNC_VERSION.tar.gz" | |
cd "rsync-$RSYNC_VERSION" | |
./configure \ | |
--disable-lz4 \ | |
--disable-openssl \ | |
--disable-xxhash \ | |
--disable-zstd | |
make | |
sudo cp ./rsync /usr/local/bin | |
rsync --version |