User login

Upgrade Subversion on Mac OS X using MacPorts

Disclaimer: I have no idea if this is the best or cleanest way to replace the svn used by Mac OS X, but it's what worked.

(I did not use this way, "Upgrade subversion client on mac osx," gridshore.nl/2008/12/21/upgrade-subversion-client-on-mac-osx/ )

Instead, I used MacPorts:

http://www.macports.org/ports.php?by=name&substr=subversion

I didn't follow these instructions at all, but here they are:
http://trac.macports.org/wiki/howto/Subversion

Be very very cautious before doing this. Make sure that you can use your subversion at its new location.
/opt/local/bin/svn in my case

Run commands from that path and use it a bit before deleting your old files and symlinking to the new MacPorts-installed Subversion.

cd /usr/bin
sudo rm svn*
sudo ln -s /opt/local/bin/svn svn
sudo ln -s /opt/local/bin/svnadmin svnadmin
sudo ln -s /opt/local/bin/svndumpfilter svndumpfilter
sudo ln -s /opt/local/bin/svnlook svnlook
sudo ln -s /opt/local/bin/svnserve svnserve
sudo ln -s /opt/local/bin/svnsync svnsync
sudo ln -s /opt/local/bin/svnversion svnversion

Resolution

Searched words: 
use macports subversion instead of mac os x svn update subversion on mac os x port location subversion Port subversion 1.5.5_0 is installed as an image in: /opt/local/var/macports/software/subversion/1.5.5_0

Comments

Problem with Commands

Hello,

Your first command should be cd /usr/bin. If you run the commands in the /opt/local/bin directory like I did using copy and paste, you will delete the MacPorts subversion files since the change directory command will fail and you will be forced to install the MacPorts subversion again.

Regards,

Marcus

You ar right.

Thanks man,

You really helped me to decide. I thought about getting rid of os x developer tools svn (subversion) version in the same way. Just wasn't sure, is there any other 'the right' way :).
But as yours' is the only one i managed to find and it works - decision is clear.
Come on my handy rm and ln -s, we got'a job to do ;)

simpler solution?

if you change accordingly your path with

export PATH=/opt/local/bin:/opt/local/sbin:/opt/local/Library/Frameworks/Python.framework/Versions/2.6/bin:$PATH

for instance, then

$ echo $PATH
/opt/local/bin:/opt/local/sbin:/opt/local/bin:/opt/local/sbin:/opt/local/bin:/opt/local/sbin:/usr/texbin:/Users/lup/lib/python2.6/site-packages/:/Developer/usr/bin:/Developer/usr/sbin:/opt/local/bin:/opt/local/sbin:/opt/local/Library/Frameworks/Python.framework/Versions/2.6/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/texbin:/usr/X11/bin:/Users/lup/bin:/usr/local/bin
$ which svn
/opt/local/bin/svn

cheers!

PS: you really should correct the first line of your command

Post new comment

The content of this field is kept private and will not be shown publicly.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.
  • You can use Markdown syntax to format and style the text. Also see Markdown Extra for tables, footnotes, and more.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <img> <blockquote> <small> <h2> <h3> <h4> <h5> <h6> <sub> <sup> <p> <br> <strike> <table> <tr> <td> <thead> <th> <tbody> <tt> <output>
  • Lines and paragraphs break automatically.

More information about formatting options

By submitting this form, you accept the Mollom privacy policy.