brew domestic source installation

DDD
Release: 2024-08-15 16:04:18
Original
880 people have browsed it

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)"
Copy after login

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

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
Copy after login
  1. Run the following command to update your homebrew:
brew update
Copy after login

The above is the detailed content of brew domestic source installation. For more information, please follow other related articles on the PHP Chinese website!

source:php.cn
Statement of this Website
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
Latest Articles by Author
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!