Linux Ubuntu Security Homebrew

L'ancien brassage a disparu, le nouveau projet s'appelle Homebrew, vous n'avez donc plus besoin d'installer de wrapper

Reportez-vous au site officiel pour l'installation: https://brew.sh/index_zh-cn

 

Étapes d'installation:

Utilisez l'image du thon lors de l'installation de Linuxbrew

0. 安装 git
1. 下载 https://raw.githubusercontent.com/Linuxbrew/install/master/install-ruby
2. 将其中 https://homebrew.bintray.com/bottles-portable-ruby/ 换为 https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles/bottles-portable-ruby/
3. 运行 ./install-ruby 安装 portable ruby
$ sudo sh ./install-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://mirrors.tuna.tsinghua.edu.cn/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://mirrors.tuna.tsinghua.edu.cn/git/homebrew/linuxbrew-core.git "$(brew --repo homebrew/core)"
11. 再次运行 ./install 即可到达安装成功结果

 

 

1,

$ / bin / bash -c "$ (curl --proxy 10.xxx.xxx.xxx:8080 -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"

 

Définissez la source:

git -C "$(brew --repo)" remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git
git -C "$(brew --repo homebrew/core)" remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/linuxbrew-core.git
brew update-reset # 如果下面一句没反应就先执行这句
brew update

 

Référence:

https://mirror.tuna.tsinghua.edu.cn/help/homebrew/

https://docs.brew.sh/Homebrew-on-Linux

 

Publié 202 articles originaux · 80 éloges · 300 000 vues +

Je suppose que tu aimes

Origine blog.csdn.net/qxqxqzzz/article/details/105464041
conseillé
Classement