mirror of
https://github.com/tuna/mirror-web.git
synced 2025-12-25 20:32:46 +00:00
help: homebrew: add notes for `linuxbrew-core` migration (#295)
* Add notes for linuxbrew-core migration * help: homebrew: fix typo
This commit is contained in:
parent
1031c38a29
commit
8776ce5921
|
|
@ -6,7 +6,7 @@ mirrorid: homebrew-bottles
|
|||
|
||||
## Homebrew-bottles 镜像使用帮助
|
||||
|
||||
**注:该镜像是 Homebrew 二进制预编译包的镜像。本镜像站同时提供 Homebrew 的 formula 索引的镜像(即 `brew update` 时所更新内容),请参考 [Homebrew 镜像使用帮助](https://{{ site.hostname }}/help/homebrew/)。**
|
||||
**注:该镜像是 Homebrew 二进制预编译包的镜像。本镜像站同时提供 Homebrew 的 formula 索引的镜像(即 `brew update` 时所更新内容),请参考 [Homebrew 镜像使用帮助](https://{{ site.hostname }}/help/homebrew/)。**
|
||||
|
||||
### 临时替换
|
||||
|
||||
|
|
@ -29,3 +29,5 @@ export HOMEBREW_BOTTLE_DOMAIN="https://{{ site.hostname }}/homebrew-bottles"
|
|||
echo 'export HOMEBREW_BOTTLE_DOMAIN="https://{{ site.hostname }}/homebrew-bottles"' >> ~/.zprofile
|
||||
export HOMEBREW_BOTTLE_DOMAIN="https://{{ site.hostname }}/homebrew-bottles"
|
||||
```
|
||||
|
||||
**注:Linuxbrew 核心仓库(`linuxbrew-core`)自 2021 年 10 月 25 日(`brew` 版本 3.3.0 起)被弃用,Linuxbrew 用户应迁移至 `homebrew-core`。Linuxbrew 用户请依本镜像说明重新设置镜像。**
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ mirrorid: homebrew
|
|||
|
||||
**注:该镜像是 Homebrew / Linuxbrew 源程序以及 formula / cask 索引的镜像(即 `brew update` 时所更新内容)。本镜像站同时提供相应的二进制预编译包的镜像,请参考 [Homebrew bottles 镜像使用帮助](https://{{ site.hostname }}/help/homebrew-bottles/)**
|
||||
|
||||
本站提供了 <https://github.com/Homebrew> 组织下的以下 `repo`:`brew`, `homebrew-core`, `homebrew-cask`, `homebrew-cask-fonts`, `homebrew-cask-drivers`, `homebrew-cask-versions`, `install`, `homebrew-command-not-found`。
|
||||
本站提供了 <https://github.com/Homebrew> 组织下的以下 `repo`:`brew`, `homebrew-core`, `homebrew-cask`, `homebrew-cask-fonts`, `homebrew-cask-drivers`, `homebrew-cask-versions`, `homebrew-command-not-found`, `install`。
|
||||
|
||||
### 首次安装 Homebrew / Linuxbrew
|
||||
|
||||
|
|
@ -103,6 +103,24 @@ brew update
|
|||
|
||||
**注:如果用户设置了环境变量 `HOMEBREW_BREW_GIT_REMOTE` 和 `HOMEBREW_CORE_GIT_REMOTE`,则每次执行 `brew update` 时,`brew` 程序本身和 Core Tap (`homebrew-core`) 的远程将被自动设置。推荐用户将这两个环境变量设置加入 shell 的 profile 设置中。**
|
||||
|
||||
```bash
|
||||
test -r ~/.bash_profile && echo 'export HOMEBREW_BREW_GIT_REMOTE="https://{{ site.hostname }}/git/homebrew/brew.git"' >> ~/.bash_profile # bash
|
||||
test -r ~/.bash_profile && echo 'export HOMEBREW_CORE_GIT_REMOTE="https://{{ site.hostname }}/git/homebrew/homebrew-core.git"' >> ~/.bash_profile
|
||||
test -r ~/.profile && echo 'export HOMEBREW_BREW_GIT_REMOTE="https://{{ site.hostname }}/git/homebrew/brew.git"' >> ~/.profile
|
||||
test -r ~/.profile && echo 'export HOMEBREW_CORE_GIT_REMOTE="https://{{ site.hostname }}/git/homebrew/homebrew-core.git"' >> ~/.profile
|
||||
|
||||
test -r ~/.zprofile && echo 'export HOMEBREW_BREW_GIT_REMOTE="https://{{ site.hostname }}/git/homebrew/brew.git"' >> ~/.zprofile # zsh
|
||||
test -r ~/.zprofile && echo 'export HOMEBREW_CORE_GIT_REMOTE="https://{{ site.hostname }}/git/homebrew/homebrew-core.git"' >> ~/.zprofile
|
||||
```
|
||||
|
||||
_镜像迁移说明:Linuxbrew 核心仓库(`linuxbrew-core`)自 2021 年 10 月 25 日(`brew` 版本 3.3.0 起)被弃用,Linuxbrew 用户应迁移至 `homebrew-core`。Linuxbrew 用户请依新版镜像说明重新设置镜像。注意迁移前请先运行 `brew update` 将 `brew` 更新至 3.3.0 或以上版本。迁移过程中若出现任何问题,可使用如下命令重新安装 `homebrew-core`:_
|
||||
|
||||
```bash
|
||||
export HOMEBREW_CORE_GIT_REMOTE="https://{{ site.hostname }}/git/homebrew/homebrew-core.git"
|
||||
rm -rf "$(brew --repo homebrew/core)"
|
||||
brew tap --custom-remote --force-auto-update homebrew/core https://{{ site.hostname }}/git/homebrew/homebrew-core.git
|
||||
```
|
||||
|
||||
### 复原仓库上游
|
||||
|
||||
_(感谢 Snowonion Lee 提供说明)_
|
||||
|
|
|
|||
Loading…
Reference in New Issue