欢迎访问!

Office学习网

您现在的位置是:主页 > 站长知识

站长知识

Homebrew镜像

发布时间:2026-10-22站长知识次评论
Homebrew镜像是一款macOS平台的核心软件包管理系统,用以简化各类开发工具与依赖库的安装、更新和管理。立即通过阿

Homebrew镜像简介 Homebrew是一款自由及开放源代码的软件包管理系统用以简化macOS系统上的软件安装过程。

我们将按照法律规定尽快进行处理, 可能需要回退到默认配置,具体请查看《阿里云开发者社区用户服务协议》、《阿里云镜像站特别条款》等,。

brew tap -v --custom-remote --force-auto-update homebrew/core https://mirrors.aliyun.com/homebrew/homebrew-core.gitbrew tap -v --custom-remote --force-auto-update homebrew/cask https://mirrors.aliyun.com/homebrew/homebrew-cask.git# 其他 tap 仓库按需配置即可brew tap -v --custom-remote --force-auto-update homebrew/cask-fonts https://mirrors.aliyun.com/homebrew/homebrew-cask-fonts.gitbrew tap -v --custom-remote --force-auto-update homebrew/cask-versions https://mirrors.aliyun.com/homebrew/homebrew-cask-versions.gitbrew tap -v --custom-remote --force-auto-update homebrew/command-not-found https://mirrors.aliyun.com/homebrew/homebrew-command-not-found.gitbrew tap -v --custom-remote --force-auto-update homebrew/services https://mirrors.aliyun.com/homebrew/homebrew-services.git恢复默认配置 出于某些场景,-fonts。

-versions} command-not-found services; doif [[ :${BREW_TAPS}: *:homebrew/${tap}:* ]]; thenbrew tap --custom-remote homebrew/${tap} https://github.com/Homebrew/homebrew-${tap}fidonebrew update# 如果您之前永久配置了 HOMEBREW 环境变量还需要在对应的 ~/.bash_profile 或者 ~/.zshrc 配置文件中将对应的 HOMEBREW 环境变量配置行删除相关链接 特别声明: 本镜像站内容来自第三方网站, 如您发现镜像站有任何问题, 下载地址: https://mirrors.aliyun.com/homebrew/ 配置方法安装homebrew# 从阿里云下载安装脚本并安装 Homebrew git clone https://mirrors.aliyun.com/homebrew/install.git brew-install/bin/bash brew-install/install.shrm -rf brew-install# 也可从 GitHub 获取官方安装脚本安装 Homebrew /bin/bash -c $(curl -fsSL https://github.com/Homebrew/install/raw/master/install.sh)查看homebrew版本brew -v设置homebrew安装源为阿里源# 临时替换export HOMEBREW_INSTALL_FROM_API1export HOMEBREW_API_DOMAINhttps://mirrors.aliyun.com/homebrew-bottles/apiexport HOMEBREW_BREW_GIT_REMOTEhttps://mirrors.aliyun.com/homebrew/brew.gitexport HOMEBREW_CORE_GIT_REMOTEhttps://mirrors.aliyun.com/homebrew/homebrew-core.gitexport HOMEBREW_BOTTLE_DOMAINhttps://mirrors.aliyun.com/homebrew/homebrew-bottlesbrew update# 永久替换# bash 用户echo export HOMEBREW_API_DOMAINhttps://mirrors.aliyun.com/homebrew-bottles/api ~/.bash_profileecho export HOMEBREW_BREW_GIT_REMOTEhttps://mirrors.aliyun.com/homebrew/brew.git ~/.bash_profileecho export HOMEBREW_CORE_GIT_REMOTEhttps://mirrors.aliyun.com/homebrew/homebrew-core.git ~/.bash_profileecho export HOMEBREW_BOTTLE_DOMAINhttps://mirrors.aliyun.com/homebrew/homebrew-bottles ~/.bash_profilesource ~/.bash_profilebrew update# zsh 用户echo export HOMEBREW_API_DOMAINhttps://mirrors.aliyun.com/homebrew-bottles/api ~/.zshrcecho export HOMEBREW_BREW_GIT_REMOTEhttps://mirrors.aliyun.com/homebrew/brew.git ~/.zshrcecho export HOMEBREW_CORE_GIT_REMOTEhttps://mirrors.aliyun.com/homebrew/homebrew-core.git ~/.zshrcecho export HOMEBREW_BOTTLE_DOMAINhttps://mirrors.aliyun.com/homebrew/homebrew-bottles ~/.zshrcsource ~/.zshrcbrew update配置tap仓库非必需非开发者无需配置# 绝大部分用户无需额外配置 tap 仓库# 如果您需要使用 Homebrew 的开发命令则按照如下命令配置 homebrew/core 和 homebrew/cask 镜像, , unset HOMEBREW_BREW_GIT_REMOTEgit -C $(brew --repo) remote set-url origin https://github.com/Homebrew/brewunset HOMEBREW_API_DOMAINunset HOMEBREW_CORE_GIT_REMOTEBREW_TAPS$(BREW_TAPS$(brew tap 2/dev/null); echo -n ${BREW_TAPS//$\n/:})for tap in core cask{,阿里云会尽力审核镜像内容安全,可以填写镜像站投诉表单举报,但无法保证其完全合规,请您在下载前慎重考虑, 你可以通过下述方式回退到默认配置,它拥有安装、卸载、更新、查看、搜索等很多实用的功能通过简单的一条指令就可以实现包管理十分方便快捷。

广告位

热心评论

评论列表