INSTALLING RSYNC WITH SPECIFIC VERSION ON MAC OSX

A step-by-setp setup instructions

Posted by argansos on September 2, 2020
script
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# Compile rsync 3.0.6

# Download and unarchive rsync and its patches
cd ~/Download
curl -L -O http://rsync.samba.org/ftp/rsync/src/rsync-3.0.6.tar.gz
tar -xzvf rsync-3.0.6.tar.gz
rm rsync-3.0.6.tar.gz
curl -L -O http://rsync.samba.org/ftp/rsync/src/rsync-patches-3.0.6.tar.gz
tar -xzvf rsync-patches-3.0.6.tar.gz
rm rsync-patches-3.0.6.tar.gz
cd rsync-3.0.6

# Apply patches relevant to preserving Mac OS X metadata
patch -p1 <patches/fileflags.diff
patch -p1 <patches/crtimes.diff
patch -p1 <patches/hfs-compression.diff

# Configure, make, install
./prepare-source
./configure
make
sudo make install

# Verify your installation
/usr/local/bin/rsync --version
Reference