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

brew domestic source installation

DDD
DDD Original
2024-08-15 16:04:18 879browse

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:

/bin/bash -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"

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:
nano ~/.zshrc
  1. Add the following line to the end of the file:
export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles
  1. Save and close the file.
  2. Run the following command to update your homebrew configuration:
source ~/.zshrc

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:
brew tap https://mirrors.tuna.tsinghua.edu.cn/homebrew/homebrew-core
  1. Run the following command to update your homebrew:
brew update

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