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.
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)"
homebrew works pretty much “exactly” like
apt-get, the command is simply
$ brew search rsync
Found it! Now install it:
$ brew install rsync
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/bin. It should look something like this:
/usr/local/bin /usr/bin /bin /usr/sbin /sbin
Hope this helped :)