Home >Operation and Maintenance >Mac OS >brew domestic source installation
This article provides instructions on installing and configuring Homebrew, a package manager for macOS, using a domestic repository in China. It outlines the steps and commands required to add the domestic repository to Homebrew, allowing users to in
Use the following command to install homebrew with a domestic repository in China:
<code class="bash">/bin/bash -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"</code>
**Yes, you can use a domestic repository to install homebrew packages.
To do so, you need to add the domestic repository to your homebrew configuration:**
<code class="bash">nano ~/.zshrc</code>
<code class="bash">export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles</code>
<code class="bash">source ~/.zshrc</code>
Yes, there is a way to set up homebrew to use a domestic repository.
To do so, you can use the following steps:
<code class="bash">brew tap https://mirrors.tuna.tsinghua.edu.cn/homebrew/homebrew-core</code>
<code class="bash">brew update</code>
The above is the detailed content of brew domestic source installation. For more information, please follow other related articles on the PHP Chinese website!