Discover the ultimate convenience of Homebrew on Ventura macOS system with our step-by-step installation guide. Unleash the power of package management as you effortlessly install, update, and manage a plethora of software packages.

Setup proxy

  1. for zsh profile, this mainly for curl or wget command or something.
$ vim ~/.zprofile

#V2RAY PROXY CONFIGURATION
export http_proxy=127.0.0.1:8889
export HTTP_PROXY=${http_proxy}
export https_proxy=127.0.0.1:8889
export HTTPS_PROXY=${https_proxy}
  1. for github downalod
$ git config --global http.proxy http://127.0.0.1:8889

# or just add content to ~/.gitconfig
[http]
	proxy = http://127.0.0.1:8889

Download homebrew install script

curl https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh \
   --output ./homebrew-install.sh
chmod +x ./homebrew-install.sh
/bin/bash ./homebrew-install.sh

Follow the script

frederick@fredericks-Mac-mini ~ % /bin/bash ./install.sh
==> Checking for `sudo` access (which may request your password)...
Password:
==> This script will install:
/usr/local/bin/brew
/usr/local/share/doc/homebrew
/usr/local/share/man/man1/brew.1
/usr/local/share/zsh/site-functions/_brew
/usr/local/etc/bash_completion.d/brew
/usr/local/Homebrew
==> The following new directories will be created:
/usr/local/bin
/usr/local/etc
/usr/local/include
/usr/local/lib
/usr/local/sbin
/usr/local/share
/usr/local/var
/usr/local/opt
/usr/local/share/zsh
/usr/local/share/zsh/site-functions
/usr/local/var/homebrew
/usr/local/var/homebrew/linked
/usr/local/Cellar
/usr/local/Caskroom
/usr/local/Frameworks

Press RETURN/ENTER to continue or any other key to abort:

remote: Enumerating objects: 13, done.
remote: Counting objects: 100% (7/7), done.
remote: Total 13 (delta 7), reused 7 (delta 7), pack-reused 6
Unpacking objects: 100% (13/13), 2.77 KiB | 202.00 KiB/s, done.
From https://github.com/Homebrew/brew
 * [new tag]             4.0.29     -> 4.0.29
HEAD is now at e475de2a4 Merge pull request #15880 from MikeMcQuaid/more_service_quoting
==> Installation successful!

==> Homebrew has enabled anonymous aggregate formulae and cask analytics.
Read the analytics documentation (and how to opt-out) here:
  https://docs.brew.sh/Analytics
No analytics data has been sent yet (nor will any be during this install run).

==> Homebrew is run entirely by unpaid volunteers. Please consider donating:
  https://github.com/Homebrew/brew#donations

==> Next steps:
- Run these two commands in your terminal to add Homebrew to your PATH:
    (echo; echo 'eval "$(/usr/local/bin/brew shellenv)"') >> /Users/frederick/.zprofile
    eval "$(/usr/local/bin/brew shellenv)"
- Run brew help to get started
- Further documentation:
    https://docs.brew.sh

Install Prefer Package (optional)

brew install git git-lfs