Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

But, mac os x comes with 1.6 version of svn. I wanted to update my version of svn, so I installed svn using

brew install svn

which installed svn version 1.7

But if I try to check my svn version using

svn --version

It still shows 1.6

How can I change which installation to use?

(Note: It was very difficult to find right words to google this question.)

share|improve this question

migrated from Oct 15 '12 at 10:48

This question came from our site for professional and enthusiast programmers.

This question is about different versions but the solution might still be valid. – madth3 Oct 9 '12 at 18:39
no, that solution did not work for me. – hrishikeshp19 Oct 9 '12 at 19:06

Use which svn to see the path to your svn executable. If it isn't your brew install directory (/usr/local by default), you'll need to change your PATH variable so it looks in your brew install directory before the directory where it's currently finding svn. echo $PATH will show you your current path search list. Edit your ~/.bash_profile and look at all the statements that create the PATH variable. Edit or rearrange them so your desired path winds up before the current path.

share|improve this answer
well I did. port install subversion. That installed one more version of svn on my mac. It seems like "port > default > brew" – hrishikeshp19 Oct 10 '12 at 4:16

I did

port install subversion

This command installed one more version of svn on my mac.

And it seems priority is like

macports installation > default mac installation > brew installation

So, I did not try to get my brew's svn on the top, instead I accidentally installed something (macports svn) which overridden the default installation of svn. So, my mac has 3 svns, but only 1.7 is used now.

share|improve this answer

I have the same problem and I think my PATH env variable is correct.


I don't know why but I solved the problem by renaming the system svn to other.

sudo mv /usr/bin/svn /usr/bin/svn.old
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.