Home  >  Article  >  Operation and Maintenance  >  brew domestic source installation

brew domestic source installation

DDD
DDDOriginal
2024-08-15 16:04:181100browse

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

brew domestic source installation

How can I install homebrew with a domestic repository in China?

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>

Can I use a domestic repository to install homebrew packages?

**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:**

  1. Open your terminal and run the following command to edit your homebrew configuration file:
<code class="bash">nano ~/.zshrc</code>
  1. Add the following line to the end of the file:
<code class="bash">export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles</code>
  1. Save and close the file.
  2. Run the following command to update your homebrew configuration:
<code class="bash">source ~/.zshrc</code>

Is there any way to set up homebrew to use a domestic repository?

Yes, there is a way to set up homebrew to use a domestic repository.

To do so, you can use the following steps:

  1. Open your terminal and run the following command to add the domestic repository to your homebrew:
<code class="bash">brew tap https://mirrors.tuna.tsinghua.edu.cn/homebrew/homebrew-core</code>
  1. Run the following command to update your homebrew:
<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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn