mirror of
https://github.com/tuna/mirror-web.git
synced 2025-12-25 20:32:46 +00:00
Update homebrew help
Signed-off-by: Harry Chen <i@harrychen.xyz>
This commit is contained in:
parent
cbd29c6ac0
commit
ba50c68747
|
|
@ -75,17 +75,15 @@ brew update
|
|||
|
||||
### 安装 Linuxbrew 时使用 tuna 镜像 (可用 `sudo`)
|
||||
|
||||
```
|
||||
0. 安装 git
|
||||
1. 下载 https://raw.githubusercontent.com/Linuxbrew/install/master/install-ruby
|
||||
2. 将其中 https://homebrew.bintray.com/bottles-portable-ruby/ 换为 https://{{ site.hostname }}/homebrew-bottles/bottles-portable-ruby/
|
||||
3. 运行 ./install-ruby 安装 portable ruby
|
||||
4. export PATH=/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/portable-ruby/current/bin:$PATH # ==> Add Ruby to your PATH
|
||||
5. 下载 https://raw.githubusercontent.com/Linuxbrew/install/master/install
|
||||
6. 将其中 https://github.com/Homebrew/brew 换为 https://{{ site.hostname }}/git/homebrew/brew.git
|
||||
7. 运行 ./install 安装 brew
|
||||
8. 执行到 “==> Tapping homebrew/core” 时 Ctrl-C
|
||||
9. export PATH=/home/linuxbrew/.linuxbrew/Homebrew/bin:$PATH # 将 brew 添加到 PATH
|
||||
10. git clone https://{{ site.hostname }}/git/homebrew/linuxbrew-core.git "$(brew --repo homebrew/core)"
|
||||
11. 再次运行 ./install 即可到达安装成功结果
|
||||
```
|
||||
1. 安装 git
|
||||
2. 下载 `https://raw.githubusercontent.com/Linuxbrew/install/master/install-ruby`
|
||||
3. 将其中 `https://homebrew.bintray.com/bottles-portable-ruby/` 换为 `https://{{ site.hostname }}/homebrew-bottles/bottles-portable-ruby/`
|
||||
4. 运行 `./install-ruby` 安装 portable ruby
|
||||
5. `export PATH=/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/portable-ruby/current/bin:$PATH` # ==> Add Ruby to your PATH
|
||||
6. 下载 `https://raw.githubusercontent.com/Linuxbrew/install/master/install`
|
||||
7. 将其中 `https://github.com/Homebrew/brew` 换为 `https://{{ site.hostname }}/git/homebrew/brew.git`
|
||||
8. 运行 `./install` 安装 brew
|
||||
9. 执行到 `==> Tapping homebrew/core` 时 Ctrl-C
|
||||
10. `export PATH=/home/linuxbrew/.linuxbrew/Homebrew/bin:$PATH` # 将 brew 添加到 PATH
|
||||
11. `git clone https://{{ site.hostname }}/git/homebrew/linuxbrew-core.git "$(brew --repo homebrew/core)"`
|
||||
12. 再次运行 `./install` 即可到达安装成功结果
|
||||
|
|
|
|||
Loading…
Reference in New Issue