Linux Ubuntu Security Homebrew

The old brew is gone, the new project is called Homebrew, so you do n’t have to install any wrapper anymore

Refer to the official website for installation: https://brew.sh/index_zh-cn

 

installation steps:

Use the tuna image when installing 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)"

 

Set the 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

 

reference:

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

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

 

Published 202 original articles · 80 praised · 300,000 views +

Guess you like

Origin blog.csdn.net/qxqxqzzz/article/details/105464041