SuperAPI AI Directory

homebrew

General & other

View repository

Updated 10-16 00:04

About this skill

Homebrew Package Management

macOS package manager for installing, upgrading, and managing command-line tools and desktop applications.

Use Cases

  • User says "help me install ffmpeg" or "I want to install Python"
  • User says "update all software" or "see which packages are outdated"
  • User says "uninstall node" or "search whether there is an XX tool"

Execution Method

Search

brew search 关键词

Install

# 命令行工具
brew install ffmpeg

# GUI 应用
brew install --cask visual-studio-code

Update

# 更新 Homebrew 本身
brew update

# 查看可升级的包
brew outdated

# 升级所有
brew upgrade

# 升级单个
brew upgrade ffmpeg

Information Query

# 包信息
brew info ffmpeg

# 已安装列表
brew list
brew list --cask

# 依赖树
brew deps --tree ffmpeg

Cleanup

# 清理旧版本缓存
brew cleanup

# 查看可回收空间
brew cleanup -n

Uninstall

brew uninstall ffmpeg
brew uninstall --cask visual-studio-code

Output Specifications

  • Before installation, inform the user of the version and size to be installed
  • After successful installation, confirm the version number
  • Before upgrading, list the packages to be updated and ask the user to confirm