Update rsync on OSX with Homebrew

Quick guide on Homebrew and installing the latest version of rsync.

I had to fiddle around and Google a bit to get the rsync installed via Homebrew, so I thought I’ll write about it.

apt-get is a package manager for Ubuntu and Debian, whereas homebrew is for Mac OS X.

Install Homebrew

If you haven’t already, install it by pasting this to your terminal prompt:

$ ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"

Use it

homebrew works pretty much “exactly” like apt-get, the command is simply brew:

$ brew search rsync

Found it! Now install it:

$ brew install rsync

Make rsync work

After installing it check the rsync version to be sure it’s in use

$ rsync --version
rsync  version 2.7.0

Despite the install, for me it showed the old version 2.7.0 (at the time of writing this the latest is 3.1). To solve this: pop open /private/etc/paths file and move the line /usr/local/bin before /usr/bin. It should look something like this:


Hope this helped :)


Club-Mate, the beverage → club-mate.fi