Home > Operation and Maintenance > Mac OS > brew domestic source installation

brew domestic source installation

DDD
Release: 2024-08-15 16:04:18
Original
1180 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:

<code class="bash">/bin/bash -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"</code>
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:
<code class="bash">nano ~/.zshrc</code>
Copy after login
  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>
Copy after login
  1. Save and close the file.
  2. Run the following command to update your homebrew configuration:
<code class="bash">source ~/.zshrc</code>
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:
<code class="bash">brew tap https://mirrors.tuna.tsinghua.edu.cn/homebrew/homebrew-core</code>
Copy after login
  1. Run the following command to update your homebrew:
<code class="bash">brew update</code>
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template