Skip to content

Latest commit

 

History

History
62 lines (45 loc) · 1.13 KB

brew.md

File metadata and controls

62 lines (45 loc) · 1.13 KB
date author title url tags series categories toc draft
2022-05-22 14:37:54 +0800
Rustle Karl
brew MacOS 包管理器
posts/linux/tools/pkg-manager/brew
Linux
Linux 学习笔记
学习笔记
true
false

安装

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

可能会遇到 Failed to install Homebrew Portable Ruby,删除下面的文件即可:

rm /Users/yn/Library/Caches/Homebrew/portable-ruby-2.6.3_2.yosemite.bottle.tar.gz

基本功能

# 查询
brew search 软件名

# 安装
brew install 软件名

# 卸载
brew uninstall 软件名

# 更新 Homebrew
brew update 

# 查看 Homebrew 配置信息
brew config 

常用

brew install visual-studio-code 
brew install golang
brew install microsoft-remote-desktop
brew install --cask jetbrains-toolbox
brew install google-chrome 

代理下载

与 Linux 系统是一样的,自动检测代理相关的环境变量:

ALL_PROXY= http://127.0.0.1:8118 brew