5

I want to update rsync in high sierra.

After I installed it using homebrew, it is installed in

/usr/local/Cellar/rsync/3.1.3_1

rsync --version still shows 2.6.9. how can I fix that?

1
  • Truck.app is an rsync client for Mac that comes with rsync 3.1.1 bundled. bonhardcomputing.com/truck (disclaimer: I am a developer)
    – dave
    Feb 11, 2019 at 4:40

2 Answers 2

4

Try closing terminal window and opening it again. Rsync changes only take place after closing terminal session. Helped in my case.

0
2

From this article:

Open the terminal and paste the command:

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Homebrew will link most software to /usr/local/bin. However, the terminal may be looking in other folders first, so lets make sure that /usr/local/bin is the first line in our path list.

sudo nano /private/etc/paths

Now you are ready to install the new Rsync version, and can do so as follows:

brew install rsync

Once completed, you should sign out and back in to MacOS.

When entering the command below, you will see now that you are using rsync 3.1.3 (at time of writing), instead of rsync 2.6.9. You are no longer running a 12 year old version of Rsync!

rsync --version
rsync  version 3.1.3  protocol version 31

As simple as that.

3
  • Is there a way to have brew install rsync v3 under a different name (e.g. rsync3)? v2 and v3 have some different (incompatible) options, so a command that works fine with v2 may fail with v3 because the options mean something else. Thus, it'd be safer not to override the builtin v2. Nov 30, 2018 at 18:00
  • Te OP has already installed via Homebrew so most of this is not useful and the useful bit is not usually needed.
    – mmmmmm
    Feb 12, 2019 at 22:37
  • I did all these steps but still showing the old version instead 2.6.9 Jun 5, 2020 at 12:31

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .