Upgrade svn on OS X 10.9

On OS X 10.9.5, there is /usr/bin/svn, which is version 1.7.19 (r1643991). However, the most recent version is 1.8.13. Apperently, with version 1.7.19 I cannot access certain subversion servers.

How can I upgrade svn? Do I really need to download and make svn (or build it via homebrew)? Why is Apple keeping me out-dated with an old version?


Solution 1:

Easy way is installing via Homebrew. Just need to type the following:

$ brew install svn

These are the options:

$ brew info svn
subversion: stable 1.8.13, devel 1.9.0-rc2
Version control system designed to be a better CVS
https://subversion.apache.org/
Not installed
From: https://github.com/Homebrew/homebrew/blob/master/Library/Formula/subversion.rb
==> Dependencies
Build: pkg-config ✔, scons ✘
Required: sqlite ✔, openssl ✔
Optional: gpg-agent ✘
==> Options
--universal
    Build a universal binary
--with-gpg-agent
    Build with support for GPG Agent
--with-java
    Build Java bindings
--with-perl
    Build Perl bindings
--with-python
    Build with python support
--with-ruby
    Build Ruby bindings
--devel
    Install development version 1.9.0-rc2
==> Caveats
svntools have been installed to:
  /usr/local/opt/subversion/libexec

If you need to install homebrew, just use this sentence:

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"