13 Replies Latest reply: Jan 6, 2012 6:43 AM by Linc Davis
dgerman Level 1 (5 points)

Is the version of rsync included with lion 2.6.9?

 

The current version is 3.0.9 and uses protocol version 30


MacBook Pro, Mac OS X (10.6.2), Also have ibook
  • Barney-15E Level 8 (46,294 points)

    Yes, it is 2.6.9

  • Tony T1 Level 6 (8,975 points)

    Just d/l it from http://rsync.samba.org/ and compile as follows:

     

    Download and unarchive rsync and its patches

              Move patches directory to rsync-3.0.9

              cd rsync-3.0.9

     

    Apply patches relevant to preserving Mac OS X metadata

              patch -p1 <patches/fileflags.diff

              patch -p1 <patches/crtimes.diff

    Apply patch relevant to preserving Mac OS X hfs+compression

              patch -p1 <patches/hfs-compression.diff

     

    Configure, make, install

            ./prepare-source

            ./configure

            make

            sudo make install

     

    Verify your installation

              rsync --version

     

    By default, rsync will be installed in /usr/local/bin. If that isn't 

    in your path, you will need to call your new version of rsync by its 

    absolute path (/usr/local/bin/rsync).

  • Linc Davis Level 10 (192,479 points)

    A newer version of rsync will never be distributed with the Mac OS because of licensing conflicts.

     

    The last time I checked, there was a current rsync binary inside the application Carbon Copy Cloner. Extract it and throw the rest away, if you don't need it.

  • dgerman Level 1 (5 points)

    Thanks I did dwnload  and am now running 3.0.9

  • dgerman Level 1 (5 points)

    I hate to ask;

    What other programs are in this state? i.e. old version included with system.

    Is there a list somewhere.

     

    It's really a pain expecting a "recent" version and not noticing there is a much newer until spending time trying to figure out what I'm doing wrong.

    Thanks.

  • Linc Davis Level 10 (192,479 points)

    Pretty much anything under the GNU Public License, including for example the bash shell. There's no list that I know of.

  • dgerman Level 1 (5 points)

    Thanks for the (really) fast reply.

    Is updating bash a good idea?

  • Linc Davis Level 10 (192,479 points)

    If you need the features of a newer version, it is. Just don't replace the included bash, or any other system binary. That might cause system or installation scripts to fail.

  • dgerman Level 1 (5 points)

    Thanks again, I was afraid of that answer! G'night

  • Tony T1 Level 6 (8,975 points)

    Lion includes bash 3.2  New features in 4.0-4.2 can be found at: ftp://ftp.cwru.edu/pub/bash/FAQ

    If you update, just set the new shell's path in Terminal's preferences.

  • Topher Kessler Level 6 (9,865 points)

    You can also use a tool like fink or macports to install and manage rsync versions, though the most recent version that fink has is 3.0.8. While rsync is part of the Samba project, which has been replaced with an in-house SMB service, it can be distributed as a separate package.

     

    The GNU licensing was changed to prevent system services from relying on modified versions of the software, which conflicted with Apple's SMB implementation. Apple can still include the software with its OS, which is why it can still keep rsync as a command-line tool that you can use; however, it cannot implement it in ways that if the software is updated or modified by the user then it will break the OS services that depend on it or make it very hard to get them running again. This conflicted with Apple's ability to maintain a quality product, so it changed.

     

    It is entirely possible that Apple can include an updated version of rsync in the future, but my guess is that Apple has its set of BSD tools that works and is not concentrating efforts on updating them for the relatively small crowd that would use them. If it were necessary then Apple would do this, but right now the company is all about iOS and iCloud implementation, and open-source projects are on the back burner.

  • BobHarris Level 6 (17,699 points)
    Pretty much anything under the GNU Public License, including for example the bash shell

    To clarify.  Anything with a GNU version 3 license.  Versions 1 and 2 GNU licensed software versions will most likely continue to ship on Mac OS X.

     

    The GNU version 3 license is very aggressive in how it affect proprietary code forcing the sources to be released.  Apple is not interested in making all of Mac OS X open source, so they have been avoiding anything with a GNU version 3 license.

     

    However, you are free to install this code yourself, and as has been mentioned you can download and compile it yourself, or use a package manager such as MacPorts.org or Fink.sf.net

  • Linc Davis Level 10 (192,479 points)

    Versions 1 and 2 GNU licensed software versions will most likely continue to ship on Mac OS X.

     

    They may continue to ship, but they won't be updated. All current versions of code distributed by the GNU project are now under GPL v3, and will never be shipped by Apple. The same goes for rsync and Samba (which was dropped from Lion.)