Tag: homebrew

How to install SVN with Homebrew on Mac M1

Step- 1. Installing Xcode’s Command Line Tools.

xcode-select --install

Step- 2. First you need to Installing and Setting Up Homebrew.

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

The file you’ll modify depends on which shell you’re using. If you’re using Bash, you’ll use the file ~/.bash_profile:

nano ~/.bash_profile

However, if you’re using ZSH, you’ll open the file ~/.zshrc.

nano ~/.zshrc

Uncomment and change brew path with new path like: /opt/homebrew/bin.

# If you come from bash you might have to change your $PATH.
export PATH=$HOME/bin:/usr/local/bin:$PATH

If you modified .bash_profile, execute this command:

source ~/.bash_profile

If you modified .zshrc, execute this command:

source ~/.zshrc

Now let’s verify that Homebrew is set up correctly. Execute this command:

brew doctor

Step- 3. Install subversion (svn) with brew. more info.

brew install subversion

Now let’s verify that SVN is set up correctly. Execute this command:

svn help

Main tutorial link: https://www.digitalocean.com/community/tutorials/how-to-install-and-use-homebrew-on-macos

Thanks.