BRM - Homebrew 仓库管理工具
BRM (Homebrew Registry Manager)
是macOS
包管理器Homebrew
的仓库管理工具,它可以检测距你延迟最低的镜像站并快速切换,目前支持官方(github
)源、清华源、阿里源、中科大源.
安装
$ npm install -g homebrew-brm
Or
$ yarn global add homebrew-brm
用法
$ brm -h
Usage: brm [options] [command]
Homebrew registry manager for macOS
Options:
-V, --version output the version number
-h, --help output usage information
Commands:
ls List all the registries
current Show current registry and URL
use <registry> Change homebrew registry
test [registry] Show response time for specific or all registries
示例

展示可用的仓库列表

设置仓库

展示当前使用的仓库信息

自动安装环境依赖 (homebrew, git)

测试镜像站速度,延迟从小到大排序
