MacOS/Brew

来自OSSmedia
Brucekomike讨论 | 贡献2024年11月21日 (四) 15:00的版本

MacOS下的包管理器,本页内包含安装方式和推荐通过Brew安装的软件列表

安装

echo 'export HOMEBREW_API_DOMAIN="https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles/api"' >> ~/.zprofile
echo 'export HOMEBREW_BOTTLE_DOMAIN="https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles"' >> ~/.zprofile
export HOMEBREW_API_DOMAIN="https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles/api"
export HOMEBREW_BOTTLE_DOMAIN="https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles"

echo 'export HOMEBREW_BREW_GIT_REMOTE="https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git"' >> ~/.zprofile
echo 'export HOMEBREW_CORE_GIT_REMOTE="https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-core.git"' >> ~/.zprofile
echo 'export HOMEBREW_INSTALL_FROM_API=1' >> ~/.zprofile

export HOMEBREW_BREW_GIT_REMOTE="https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git"
export HOMEBREW_CORE_GIT_REMOTE="https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-core.git"
export HOMEBREW_INSTALL_FROM_API=1

git clone --depth=1 https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/install.git brew-install
/bin/bash brew-install/install.sh
rm -rf brew-install

软件列表

maccy keka \
baobab glances smartmontools \
bash nano mc cyberduck mountain-duck \
zsh zsh-completions nmap http-server simple-web-server \
android-studio godot visual-studio-code \
scrcpy android-platform-tools \
firefox google-chrome@beta microsoft-edge \
libreoffice calibre \
xournal-plus-plus \
zettlr obsidian logseq appflowy \
wacom-tablet \
kodi vlc \
olive kdenlive obs ffmpeg \
gimp macsvg krita inkscape \
audacity reaper sonic-pi pd blackhole-2ch blackhole-64ch musescore sonic-visualiser \
discord element \
utm \
blender kicad freecad \
microsoft-remote-desktop rustdesk \


需要拉取仓库的包

brew tap mac-cleanup/mac-cleanup-py
brew install mac-cleanup-py
brew install netbirdio/tap/netbird
brew install --cask netbirdio/tap/netbird-ui