Update Subversion on Mac OS X

If you get the following error

svn: This client is too old to work with working copy '.';
please get a newer Subversion client

... or you just want to update your subversion client (command line), try the following:

  1. In Terminal, type "svn --version" to find out what version you currently have
  2. Go to http://www.open.collab.net/downloads/community and download the latest client for OS X and install it. This will install the new svn into /opt/subversion/bin
  3. Got to your terminal and check your $PATH by typing "echo $PATH". If you don't see /opt/subversion/bin in there, make sure you add it by typing export PATH=/opt/subversion/bin:$PATH. If it DOES exist and appears AFTER /usr/bin, then you may need to remove an older copy of svn that came installed on OS X. To do so, go to /usr/bin and remove all files starting with svn. This isn't an exact science but it should do the trick.
  4. Make sure you reload your .profile first by typing
    . ./.profile*
  5. Type "svn --version". You should see that you have the newest version installed!

NOTE: If /opt/subversion/bin already exists, it will be backed up to /opt/subversion_backup.MMDDYYHHMMSSS. See the readme for more information.

*See http://www.tech-recipes.com/rx/2621/os_x_change_path_environment_variable/ for a great explanation of this

You sir, are a legend. Thank

You sir, are a legend. Thank you :-)

Thanks so much, these steps

Thanks so much, these steps were helpful in update of my svn client on Mac.

Thanks for the feedback, I

Thanks for the feedback, I really appreciate it. Sometimes I post this stuff an wonder if it actually helps!

Hey! Thank you very very much

Hey! Thank you very very much for this guide! I tried to install the newest version of SVN through MacPorts to no avail because I got an error about not having a C Compiler in my profile. By following this handy guide I was able to update SVN quickly and easily!

It seems, that they changed

It seems, that they changed the target directory. svn 1.6.4 was installed to

/opt/subversion/bin

on my Mac, not to /usr/local/bin

@fbolte Thanks for the

@fbolte Thanks for the heads-up! I've updated my original post to reflect this change. I just upgraded myself, but in Ubuntu, so I didn't notice the switch in OS X.

On a side note, it looks like the latest version supports individual file externals -- not just folders -- w00t!

Many thanks for a great

Many thanks for a great tutorial!

So - what I can to replace old version of my SVN?
Just remove old files of SVN and place new ones?
Or maybe exists another way how it could be done?

It depends on what your old

It depends on what your old version was, but you should be able to just install the new one and have the old one overwritten automatically.

Happy customer: you solve my

Happy customer: you solve my problem, thank you very much. I missed the $PATH step.

Thanks! I had installed the

Thanks! I had installed the binaries for SVN, but it was still showing the old version in --version. The $PATH step did the trick.

Thank you! I am new to Mac, I

Thank you!
I am new to Mac, I still don't quite understand what I have done, but I updated the SVN! :) Thanks!

thank you very much! I had

thank you very much! I had the problem with the original subversion client that comes installed with OSX, and i needed a never one. This did the trick! Thanks!

Hey, no problem people...

Hey, no problem people... glad this post is still helping you all out!

Another way to find the

Another way to find the current svn executable is to type "whereis svn" in terminal.

Or maybe better: "which svn"

Or maybe better: "which svn"

Thanks a lot

Thanks a lot

This would be great if I

This would be great if I could get a registration at Collabnet... You can't even get the binaries without signing-up. Is there any other way to do this?

Hi and thanks for this

Hi and thanks for this tutorial!

I did all the steps and svn --version shows the desired 1.6.2.
Unfortunately, whenever I finished executing all steps, close my console and open a new one, the changes are discarded, svn version is back to 1.4.4, $PATH doesn´t contain the dir to the new svn anymore.

I noticed something odd: I didn´t have the .profile-file in my homedir. I created id and went through all the steps again, but nothing was written in .profile. I´m running osx 10.5.8 and try to use svn with the subclipse plugin 1.6 to Eclipse 3.5

Please help me, I´m seriously desperate right now...

If the path was not added to

If the path was not added to your .profile file then, after the installation add the following to your .profile file.

export PATH=/opt/subversion/bin:${PATH

and perform

source ~/.profile
svn --version

Thank you for this post!

Thank you for this post!

thank a ton!

thank a ton!

Awesome. Thanks so much!

Awesome. Thanks so much!

Worked fine! Thanks!

Worked fine! Thanks!

Thank you very much!

Thank you very much!

Thanks a lot for this guide!

Thanks a lot for this guide! I tried to install the latest version of SVN through MacPorts to no avail cause I got an error about not having a C Compiler in my profile. By following this handy guide I was able to update SVN quickly and easily!

3 years later, this is still

3 years later, this is still incredibly helpful. Thanks a lot!

Ha! That's great... glad we

Ha! That's great... glad we can help :)

Thanks !!

Thanks !!

worked great! thank you!!!

worked great! thank you!!!

Post new comment

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <h1> <h2> <h3> <h4> <h5> <h6> <img>
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.
  • Lines and paragraphs break automatically.

More information about formatting options