Upgrading rsync on OS X using Homebrew

27.8k views Asked by At

The rsync version on my OS X (10.10.3) is an old one, 2.6.9. I've tried to upgrade it using Homebrew but I get the following error:

Error: No available formula for rsync

The new one is supposed to be 3.0+ and much quicker, but how do I install this without deleting the old one?

6

There are 6 answers

15
Vaibhav Sagar On BEST ANSWER

Follow the instructions here:

brew tap homebrew/dupes
brew install rsync

And then edit /private/etc/paths to put /usr/local/bin before /usr/bin.

Edit:

Warning: homebrew/dupes was deprecated. This tap is now empty as all its formulae were migrated.

So, only

brew install rsync

is enough.

2
crifan On

Merged answers of Vaibhav Sagar, Paulo Almeida, woodenflute, Community, the final solution is (just):

brew install rsync

Explanation:

  • NOT need brew tap homebrew/dupes for homebrew/dupes has been deprecated and merged into build-in homebrew/core
    • you can use brew tap to find existing homebrew/core
  • after install, if you are in terminal, you need refresh terminal: source ~/.bashrc, then can use rsync --version to see the new version, otherwise it still show old version
1
Rystraum On

After I followed the accepted answer, there is still no rsync binary in /usr/local/bin.

To finally make it work, I had to do the following:

sudo ln -s /opt/homebrew/Cellar/rsync/3.2.3/bin/rsync /usr/local/bin/rsync
source ~/.bashrc

In my case, brew install installed version rsync 3.2.3.

1
Paulo Almeida On

Warning: homebrew/dupes was deprecated. This tap is now empty as all its formulae were migrated.

0
user8763587 On

Had the same problem, try to update homebrew

brew update
brew update
brew tap home-brew/dupes
brew install rsync
0
woodenflute On

If you followed @Vaibhav Sagar's instruction, and checked that everything is correct as per @Michael Ohlrogge's comment and it still doesn't work, try reloading bash as per this answer: How do I reload .bashrc without logging out and back in? by executing . ~/.bashrc or exec bash.