Skip to content

Instantly share code, notes, and snippets.

@magnetikonline
Last active August 25, 2026 04:19
Show Gist options
  • Select an option

  • Save magnetikonline/1a47d6e1d2204825975ca4e175c16d20 to your computer and use it in GitHub Desktop.

Select an option

Save magnetikonline/1a47d6e1d2204825975ca4e175c16d20 to your computer and use it in GitHub Desktop.
macOS - Install Rsync from source.
#!/bin/bash -e
VERSION="3.5.0"
WORK_DIR=$(mktemp -d)
sudo --validate
curl --fail --silent "https://rsync.samba.org/ftp/rsync/src/rsync-$VERSION.tar.gz" |
tar --directory "$WORK_DIR" --extract --gzip
curl --fail --silent "https://rsync.samba.org/ftp/rsync/src/rsync-patches-$VERSION.tar.gz" |
tar --directory "$WORK_DIR" --extract --gzip
pushd "$WORK_DIR/rsync-$VERSION"
./configure \
--disable-lz4 \
--disable-openssl \
--disable-xxhash \
--disable-zstd
make
sudo cp ./rsync /usr/local/bin
popd
rsync --version
# cleanup
rm -fr "$WORK_DIR"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment