Steps to install current/modern Bash version via Homebrew on macOS.
---
title: Install current Bash on macOS 27 Silicon with Homebrew
subtitle: Steps to install modern Bash version via Homebrew on macOS.
author: Jon LaBelle
date: December 1, 2026
source: https://jonlabelle.com/snippets/view/markdown/install-modern-bash-on-macos-27-silicon-with-homebrew
notoc: false
---
To get a current version of **GNU Bash** (`bash`) on Apple Silicon running macOS
27 (Golden Gate), install Homebrew first and then install the `bash` formula.
## 1. Install Homebrew
Open **Terminal** and run the official Homebrew installation script:
```bash
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
```
Follow the on-screen prompts (you will enter your macOS password and press **Return** to confirm).
## 2. Add Homebrew to Your `PATH`
On Apple Silicon Macs, Homebrew installs under `/opt/homebrew`.
Run these commands in Terminal so `brew` is available in your current and future
sessions (assuming default `zsh`):
```bash
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> ~/.zprofile
eval "$(/opt/homebrew/bin/brew shellenv)"
```
## 3. Install Bash
Install the `bash` formula via Homebrew:
```bash
brew install bash
```
Homebrew installs the binary to `/opt/homebrew/bin/bash`. Verify the new version with:
```bash
/opt/homebrew/bin/bash --version
```
## Optional: Set Homebrew Bash as Your Default Shell
macOS keeps older system binaries in `/bin/bash` and uses `zsh` as the default shell.
To switch your login shell to Homebrew's Bash:
1. Allow `/opt/homebrew/bin/bash` as a valid login shell:
```bash
echo /opt/homebrew/bin/bash | sudo tee -a /etc/shells
```
2. Change your default shell:
```bash
chsh -s /opt/homebrew/bin/bash
```
3. Open a new Terminal window and check `$BASH_VERSION` to confirm you are running the Homebrew build.