Skip to content

Instantly share code, notes, and snippets.

@magnetikonline
Created July 2, 2025 10:00
Show Gist options
  • Save magnetikonline/1a47d6e1d2204825975ca4e175c16d20 to your computer and use it in GitHub Desktop.
Save magnetikonline/1a47d6e1d2204825975ca4e175c16d20 to your computer and use it in GitHub Desktop.
Install Rsync on macOS from source.
#!/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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment