Installing Latest Version Of Rsync On Mac OS X Snow Leopard By Using MacPort

Did you notice that Rsync on Mac OS X Snow Leopard is version 2.6.9, but the latest version of Rsync is 3.0.8?  Since some people might want to use Rsync between Mac OS X Snow Leopard and Linux, but their Rsync program on Mac OS X Snow Leopard might stutter (i.e., hanging and stop working in the middle of transferring files).  This is why you need to upgrade/update your Rsync to the latest version, but Rsync program on Mac OS X Snow Leopard is a modified version, and so you won’t be able to upgrade/update it unless you use Macport.

So, what is MacPort?  I think Macport is a package manager outside of Apple’s realm, and MacPort tends to repackage Linux/Unix software and make these software available for Mac users.  Rsync is obviously tied to Linux/Unix.  Anyhow, installing MacPort can be really easy, because you can download the dmg file of MacPort and double click dmg file to install MacPort.  The hard part is that MacPort requires you to have XCode, but XCode 3 is available for free on Apple’s website.  XCode 3 is huge, and so you should expect your download will be around 4 GB or so.

I don’t know what version of Rsync that Mac OS X Lion is using, and so this blog post is specifically address Snow Leopard only!  In case Mac OS X Lion isn’t using the latest version of Rsync too, then you can follow this post and try install MacPort.  For your information though, you can use XCode 4 for Mac OS X Lion, because XCode 4 is a newer version of XCode and it’s freely available to download for Mac OS X Lion.  I wish XCode 4 would work with Snow Leopard, but that isn’t the case.  Anyhow, my apology for being digressed.

After you have MacPort installed, you need to do an update of your MacPort by trying this command inside terminal [port -v selfupdate].  Now, you should be able to install latest version of Rsync by trying this command in terminal [port install rsync].  Notice, do not type the square brackets inside the terminal when you execute the commands above.  I place the brackets to discern the commands from regular texts in this blog post.

You should restart your Mac OS X Snow Leopard after the installation of Rsync from MacPort has finished.  After re-logging into your Mac OS X Snow Leopard, you can use the latest Rsync by trying this command [/opt/local/bin/rsync –version].  Notice, that command will show you what version your Rsync is and also the command itself reveals where your latest Rsync is found.  Mac OS X Snow Leopard’s Rsync is found in /usr/bin/rsync, and whenever you try to type [rsync] by itself inside your terminal — Mac OS X Snow Leopard will use the older version of Rsync which is located at /usr/bin/rsync.  Of course, that is not what you want, right?  So you should try to use Rsync from /opt/local/bin/rsync, OK?

Hope this blog post help some people who struggle with Rsync on Mac OS X Snow Leopard!  Enjoy!

4 thoughts on “Installing Latest Version Of Rsync On Mac OS X Snow Leopard By Using MacPort

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.