I use Lion, and the svn /usr/bin/svn is 1.6 version. As I need to use subversion 1.7, I installed svn from brew to be installed in /usr/local/bin/svn.
How can I disable the svn* files so that I can use svn from brew?
There is a better and safer way to specify which version of an executable you want your computer to use without having to modify the executables that came pre-installed on your Mac. It's generally not recommended to alter your default system tools in any way.
You can take advantage of the PATH environment variable, which allows you to list several directories that you want your Mac to search in when looking for executables.
In order to use the latest version of svn, or any other tool you installed in
You can write the PATH to your .bash_profile by running this one-liner from the Terminal:
This command takes everything between the single quotes (
To have these changes take effect, you can either quit and relaunch Terminal, or run this command:
If you want to do it all manually, open your
and save it. Then quit and relaunch Terminal.
When I needed to upgrade from SVN 1.6 to 1.7, I installed my built version (not using Homebrew or Macports, etc.) in